uber / standard

JavaScript Standard Style — One Style to Rule Them All
MIT License
70 stars 8 forks source link

Add ES6 linking support #12

Closed freeqaz closed 9 years ago

freeqaz commented 9 years ago

Manually move over the config from eslint environments so that we have full control.

Raynos commented 9 years ago

This is a better start; it gives us good visibility.

Raynos commented 9 years ago

There are two discussions here;

How do we use a linter for ES5 and ES6 code bases.

We currently use uber-standard for node0.10 applications and lean heavily on it for correctness and style consistency. It might seem harmless to turn these features off but it would allow people to write ES6 features without the linter telling them it's invalid ES5.

Raynos commented 9 years ago

Another option is to say "ES6 is simply a different language" this means we would have a seperate linter with seperate rules.

The reasoning behind that is we might want to turn some ES5 features off; for example always use classes, never use constructor functions.

lxe commented 9 years ago

We could say; es6 should be a flag;

Make it a flag and be :+1:

freeqaz commented 9 years ago

Superseded by https://github.com/uber/standard/pull/13