mysticatea / eslint-plugin-eslint-comments

Additional ESLint rules for directive comments of ESLint.
https://mysticatea.github.io/eslint-plugin-eslint-comments/
MIT License
354 stars 44 forks source link

should not auto fix when configured to warn #69

Open runspired opened 2 years ago

runspired commented 2 years ago

Was surprised to find that setting this to warn still results in auto fix, unfortunately that makes this library unusable when a disable directive is being used for an autogenerated file that may not always be present.

bmish commented 2 years ago

This is out of the rule's control. ESLint rules aren't aware of whether the user enables them with warn or error severity. And the autofixer can be used anytime the rule is enabled regardless of severity.