angular-styleguide icon indicating copy to clipboard operation
angular-styleguide copied to clipboard

jshint: why using "esversion": 6? (and below "esnext": false).

Open DarthVanger opened this issue 7 years ago • 1 comments

Why do you have "esversion": 6 in jshint config? I guess usually we use Angular 1 with es5? If someone wants es6 he can easily change that, but I was coding in es5 and didn't expect that jshint had esversion: 6 in the config I copied from here.

On the following lines of jshint config there is also "esnext": false, which makes things even more confusing, since this option is supposed to disallow es6 features?

DarthVanger avatar Mar 29 '17 18:03 DarthVanger

I have disabled the "esnext" option and everything is working fine for me, no errors.

By the way, I am using angularJS with es6 and babel so unfortunately you can't assume that Angular 1 is used with es5 always ;)

However you're right that the "esnext": false, should be removed from example config file if I understood you correctly.

gucu112 avatar Feb 18 '18 13:02 gucu112