segmentio / eslint-config

Segment's ESLint configurations.
9 stars 6 forks source link

Changes to spacing rules #6

Closed dominicbarnes closed 9 years ago

dominicbarnes commented 9 years ago

The space-in-brackets rule that we had in a comment/TODO is now deprecated, so I've removed it from this config altogether. In it's place, I've added the new object-curly-spacing rule, which covers object literals and their spacing. There is not yet a rule for enforcing array syntax like [1, 2], but perhaps that's something we can write and submit to eslint.

I've also added the space-before-blocks rule, which should help address some inconsistent spacing around lots of control structures and functions.

/cc @ndhoule