-
-
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
disable-enable-pair
option allowWholeFile should be the default
#59
Comments
I came here to propose this feature, but glad to see it already exists! I agree it would be nice if this were the default... |
As a counterpoint to changing the default, if you want to disable a rule for an entire file, it's actually better practice to use this comment style instead:
This actually disables the rule for the entire file, whereas using |
Interesting! I didn't realize there was a "correct" way to do this. In that case, what would be really cool would be if the |
Screw suggesting - I would go further and say that the linter should either (In this context, I am assuming that the end-user has their IDE configured to do |
The issue with autofixing would be not knowing the intent of the developer. This plugin doesn't know if you forgot a corresponding I guess that's why the |
It's somewhat safe (but not completely safe) to assume that if the |
I think we might be past the point of making the Sure we can try to turn that ship but I strongly feel like that will be a failing battle. I understand that there may be some edge cases for rules that could report before the start of the comment but that must be a very very small portion of rules or teams that are affected by that 🤔 |
Hi @Zamiell! Since this repo is unmaintained, you might want to re-open this issue in the @eslint-community fork https://github.com/eslint-community/eslint-plugin-eslint-comments For more info about why we created this organization, you can read https://eslint.org/blog/2023/03/announcing-eslint-community-org |
I propose that the
allowWholeFile
should be set to true by default if it is not specified by the end-user.Setting up this plugin for the first time was frustrating, because I got a lot of false positives. I then assumed that this plugin was bugged, and eventually found out that this option existed.
I think that it is pretty standard in the JavaScript/TypeScript ecosystem to disable a while file like this, so I don't see any compelling reasons for the current behavior of
allowWholeFile
being set to false by default.The text was updated successfully, but these errors were encountered: