-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
RFC: Remove vars follow up #11783
Comments
For Prettier, we have separate configurations for files that should be ES5 and ES6. We need to extract these paths to a shared config, and then split the ESLint task into two runs, one of them would assume the code is ES5 and another, ES6. |
hi @gaearon |
Here's how we separate configs for Prettier. Since we now call ESLint through its Node API too, I imagine we would use a similar strategy there. Divide it into two calls, and override rules for one of the calls. |
Hi @gaearon, I want to work on this. |
Ok thanks, it helps! |
@ctxhou i think this should be done as fast as you can, otherwise |
There is one thing I want to discuss.
But for eslint, the es6 lint pattern should be |
I don’t understand why it would be different. Those are ES6 files. The ES5 files are listed separately below. |
Sorry, I misunderstand the pattern. |
Fixed in #11794. |
Most of the
var
has been removed after the PR #11780(thanks @raphamorim again) merged, so we could lint against developers usevar
again, but this is a bit tricky because some files have to usevar
. we should have a way to override lint configuration for a subset of the files, so we should discuss the solutions here.The text was updated successfully, but these errors were encountered: