-
Notifications
You must be signed in to change notification settings - Fork 23
Ignore fixable rule while typing #208
Comments
Is the feature you want disabling lint until save? Or disable lint until a certain period of being idle? |
The way linter-eslint works is it will disable the fixable rules while typing (i.e. in the "lint on fly" stage) and will display these errors only when the file is saved. But for errors which can't be fixed automatically (e.g. unused variable), the error is shown immediately and will be shown until it's fixed. |
Sounds like a good improvement. I will work on this when I get some free time. As for the fixable/nonFixable errors, I'm not sure off hand what info the API gives us, so that'll need some investigation |
It's a mess, but mostly works. |
Hmm, sounds messy. Got a direct link to the cache code? Seems that the |
The check for updated (and the initial) fixable rules list in the worker happens here. When that has found updates to send it is returned here. The job response is processed here which updates a local list of fixable rules that is used here when sending a job. It was all introduced in AtomLinter/linter-eslint#1018. |
It would make sense to hardcode the trailing whitespace rules as blacklisted by default, because atom itself fixes it |
@phaux Atom itself doesn't fix those, the |
We could technically scan |
I keep switching between JS code, where I'm using eslint, and TypeScript code. One feature that I really enjoy in eslint and am missing with tslint is Ignore fixable rules while typing.
I like it because the UI is less distracting while I'm typing and is not showing errors that are fixed as soon as I save the file, e.g. eofline, which is already fixed by atom.
Would something like that be possible?
The text was updated successfully, but these errors were encountered: