Slow Eslint on typescript files, sometimes freezes on indexing
Hello.
Eslint is very slow with my project on .ts, .tsx files.
The project stack is React + Webpack + mobx-state-tree.
Also Webstorm could freeze on a minute, when I am pointing on variable (variable could be from mobx-state-tree store), it starts indexing.
I have tried to mark extra folders as excluded, except of main project directory, didn't help a lot.
Tried to update Webstorm version to latest 2020.1.1. Now indexing to mobx-state-tree reference is absent, it only references inside functions. Eslint warning could still be for 5 mins or so.
Same Eslint issue with previous versions of IDE.
Tslint works faster with project, but still slow. Resolving Reference.. could freeze Webstorm for a couple of mins.
Testing on this Eslint rule:
ESLint: 'functionName' was used before it was defined.(@typescript-eslint/no-use-before-define)
Let me know, please, how I can test my cpu memory or find the issue of bad perfomance with Eslint.
Best Wishes, Valery.
Please sign in to leave a comment.
Is ESLint slowness the only problem? Are the IDE own errors/warnings (the ones not prefixed with `ESLint:`) updated instantly?
Also, what is a result of running ESlint inspections in terminal - how long does it take for ESlint to inspect your code?