-
Notifications
You must be signed in to change notification settings - Fork 701
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
lint: default to ecmaVersion: 6, keep ecmaVersion: 5 for client/ #593
Conversation
c3334dc
to
a9341a9
Compare
Awesome start! Reason why it takes a bit longer to run is because you are loading ESLint "environment" (or whatever it's called) 3 times now. I think this is a bit convoluted though IMO. I'd go for simpler: an ES6-enable one and another that it's not. Something like |
a9341a9
to
204e5e4
Compare
Yeah that makes sense. Shaved off 1.5-2s. |
👍 looks good |
Slightly off-topic but as an FYI in case it's useful someday, I discovered that setting up Anyway, 👍 on this, cool! |
Yep, that's how I did it first. #javascript on IRC told me |
Hmm, that's highly surprising (unless they were saying that |
lint: default to ecmaVersion: 6, keep ecmaVersion: 5 for client/
Cleanest solution I could come up with right now.
Adds ~3s to the linting process though, ymmv. (not sure how big part the added es6 environment plays in that, doubt it's much)
Unblocks #592.