You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to migrate gradually from tslint to typescript-eslint. On my attempt to incorporate @typescript-eslint/tslint/config the linting became extremly slow. Fiddling around with the configuration file, I found out that the problem is in the parserOptions property.
Mine looks quite minimalistic:
parserOptions: {
project: 'tsconfig.json'
}
I run ESLint several times with and without parserOptions and benchmarked the timings (based on 10 runs):
Linter configuration
Time
ESLint with parserOptions
15s
ESLint without parserOptions
3s
I'm not sure if that much of a slowdown is unevitable or it's just a malconfiguration of some sort.
Versions
package
version
@typescript-eslint/eslint-plugin-tslint
1.4.1
@typescript-eslint/parser
1.4.0
TypeScript
3.3.3
ESLint
5.14.1
node
8.9.4
npm
5.8.0
The text was updated successfully, but these errors were encountered:
It's a known issue because of eslint runs each file isolated, so we're currently paying the initialisation cost of the type checker in every single file (which is slow and means a lot of duplicated work).
I am trying to migrate gradually from tslint to typescript-eslint. On my attempt to incorporate
@typescript-eslint/tslint/config
the linting became extremly slow. Fiddling around with the configuration file, I found out that the problem is in theparserOptions
property.Mine looks quite minimalistic:
I run ESLint several times with and without
parserOptions
and benchmarked the timings (based on 10 runs):I'm not sure if that much of a slowdown is unevitable or it's just a malconfiguration of some sort.
Versions
@typescript-eslint/eslint-plugin-tslint
1.4.1
@typescript-eslint/parser
1.4.0
TypeScript
3.3.3
ESLint
5.14.1
node
8.9.4
npm
5.8.0
The text was updated successfully, but these errors were encountered: