Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DarthVanger opened this issue Mar 29, 2017 · 1 comment
Open

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

DarthVanger opened this issue Mar 29, 2017 · 1 comment

Comments

@DarthVanger
Copy link

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?

@gucu112
Copy link

gucu112 commented Feb 18, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants