-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
no-unused-disable
rule breaks with ESLint 5.0.0-alpha.1
#12
Comments
Thank you for the report. Yeah, we can't use I have to deprecate that rule in this plugin. |
Thanks, that makes sense. It's a little too bad though that this is available as a CLI flag only. Unless I'm wrong there would be no way to specify |
You are right. It's inconvenient. I have two other ways:
|
Is there a specific reason ESLint allows only one post-processor per file extension? Otherwise maybe this could be improved first, then this can be fixed without resorting to another hack? I also wanted to mention that having this rule as a CLI flag instead makes it not available in some IDEs. E.g. in Atom, it does not seem to be possible to specify CLI flags to the official ESLint Atom plugin. Although it could be argued that the real fix is to improve that plugin to support CLI flags. |
Yes, because processors are designed to extract multiple code blocks from a file. For example,
However, we can't specify the option in shareable configs, it's inconvenient. |
OK it makes sense that combining processors is going to be hard or impossible. It seems to me the correct solution might be to allow specifying this CLI flag in shareable configs as well. In the meantime I have raised an issue for Atom users to fix my immediate problem (which basically is: having my IDE notify me as I code that I'm using a unused |
I published v3.0.0-beta.0. I used a hack to make the
I believe that it can cover most usecases. |
This is great! Thanks for your work on this. |
Closing as I have published v3.0.0. Thank you! |
The rule throws:
The faulty source code is:
ESLint
5.0.0-alpha.1
removedcontext._linter
being it considered it being a hack.The text was updated successfully, but these errors were encountered: