-
Notifications
You must be signed in to change notification settings - Fork 342
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
Ignore auto fixable rules while typing #655
Comments
Does "while typing" mean that the warnings are suppressed only in a short period after keystroke? I kind of want the warning to be suppressed always. |
"While typing" means until you save, so no matter if you're actually typing or not. As they are fixed on save you never really get them reported. |
A variant approach is to ignore "layout" rules while typing. Layout rules are those with |
+1. It's very annoying to get a huge block of red squiggly lines just because I've just opened a |
My other issue #711 was closed as a dupe of this one, so I'm posting the more detailed proposal here. From my issue OP: My proposal is to implement one of the following options: A) don't display any warnings (and possibly errors) in the editor, but do fix those on save. or: B) Add an option to add a time delay between the last character typed, and the appearance of warnings/errors or: C) Add an option to only display warnings and errors on save A, B, C all solve the same problem: For Setting Would this be complicated to implement? am I missing some setting? |
#755 requests to make the rules configurable as well. |
Dups #267 |
The eslint integration for atom has a feature that allows to ignore auto fixable rules while typing (AtomLinter/linter-eslint#894). I find this to be very useful for stylistic errors like the ones from prettier.
If you have "Auto Fix On Save" enabled, the code will be taken care of anyway afterwards. Therefore I think there's no need to report them while typing. Of course this probably needs to be configurable.
Note that this is not only about prettier, but about auto fixable rules in general.
The text was updated successfully, but these errors were encountered: