Skip to content
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

should not auto fix when configured to warn #69

Open
runspired opened this issue Feb 19, 2022 · 1 comment
Open

should not auto fix when configured to warn #69

runspired opened this issue Feb 19, 2022 · 1 comment

Comments

@runspired
Copy link

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
Copy link

bmish commented Feb 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants