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
Handle deprecated rules (closes #112) #120
Conversation
@lydell Let's continue the discussion here. I've gone with the simplest solution...
Notes
|
Let’s take |
Ok, looks like I misunderstood the deprecation process. I thought that deprecated rules are removed and don't work when you upgrade, but it turns out they stick around and will work indefinitely, as mentioned in the ESLint Rule Deprecation guidelines. So now let me rethink this.
In this case, there's actually no conflict as Prettier is aligned with the expected behavior of This is where adding This means that we can't rely on the ESLint version as users may still use the deprecated rules. Let me define my original challenge...
Thoughts
Two options come to mind, based on your suggestions:
ESLINT_CONFIG_PRETTIER_NO_DEPRECATED=1 npx eslint-find-rules -d .eslintrc
I'm leaning towards 1 since it's much simpler and fits well with the use case of running a CLI command to lint for deprecated rules. I'll make a new PR with that solution. |
b9c49aa
to
8a2b5d9
Compare
Deprecated rules should be added conditionally.
See #112