-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
@eslint-community/eslint-comments/no-unused-disable
option to disable autofix
#234
Comments
Ideally this would be handled at the ESLint level rather than within any specific rule. That's a bigger task though and not one that excludes this. |
Agreed. As a note for anyone else reading this, ESLint has https://eslint.org/docs/v8.x/use/configure/rules#report-unused-eslint-disable-comments , but that has a few issues that don't obsolete
|
I meant that the option to disable autofix for any individual rule should be supported by ESLint, as eg. Biome does: https://biomejs.dev/linter/#configure-the-rule-fix :) |
Ah yes, that too ! |
Normally to disable a rule's autofix through configuration, I'd simply use https://github.com/aladdin-add/eslint-plugin/tree/master/packages/no-autofix . But due to the special way this rule works (as mentionned in its documentation https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html#known-limitations ),
no-autofix/@eslint-community/eslint-comments/no-unused-disable
doesn't work.I want to be warned about rules that no longer trigger, but I don't want that change to be automated.
The text was updated successfully, but these errors were encountered: