Delay running ESLint

I've had this problem with ESLint on Atom as well, where it tries to lint after every keystroke and slows you down incredibly. Atom has a feature to delay linting by n seconds so you can get to the end of the line at least before it makes you wait. Sometimes it even works. Does Webstorm have such a feature? 

0
5 comments

No, there is no such feature. Are you sure that your issue is related to ESLint? are you using WebStorm built-in ESLint integration, file watcher or ESLint plugin (https://plugins.jetbrains.com/plugin/7494-eslint)?

0
Avatar
Permanently deleted user

I'm using the built-in ESLint plugin. And I can't say for certain it's ESLint, the lag disappears (mostly) when I disable ESLint so it's my top suspect at the moment.

0

Please try taking CPU snapshots once the issue occurs - see https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems

I'd also suggest to make sure that all folders with dynamically generated stuff (build tools output dirs) are excluded from indexing (Mark directory as/RExcluded)

1
Avatar
Permanently deleted user

Excluding seems to have done it :) Thanks Elena!

1
Avatar
Permanently deleted user

exhuming an old ticket here, but in case someone else stumbles upon this via Google:

I had the issue where eslint was running very slow and after 20s got killed by Webstorm. I could fix this by un-exclude my node_modules and then mark it again as excluded. Now it just runs nice and quick again.

0

Please sign in to leave a comment.