Very slow with typescript-eslint parser and `project`
See original GitHub issueHi!
Since we’ve added the project: './tsconfig.json'
option to parserOptions
(to allow @typescript-eslint/prefer-nullish-coalescing rule for instance) the parsing is really really slow. On our project it went from 30s to 11min.
If we exclude .vue
files or remove the project
option then it’s fast again.
Anyone else went into this issue?
Indeed I ran into https://github.com/typescript-eslint/typescript-eslint/issues/389 but the performance on our project when excluding .vue
files is ok, so it’s really the parsing of <script> SFCs imho.
Our eslint parsing options:
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
parser: '@typescript-eslint/parser',
project: './tsconfig.json',
extraFileExtensions: ['.vue'],
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Why typescript-eslint Performance is Slow - Duncan Leung
Problem: Slow Lint Run Process While setting up our team's ESLint config with TypeScript, I noticed that running ESLint with typescript-eslint ...
Read more >Bug: eslint is running slow when giant files such as typescript ...
eslint is taking almost 2 minutes to lint half a dozen files, none of which are big. In the debug log (posted below),...
Read more >Angular project with eslint is super slow - Stack Overflow
The underlying issue is still the overhead of the TypeScript compiler ... In my case the parserOptions.project was configured to .
Read more >Why Is VSCode Typescript Linting So Damn Fast?
Unfortunately, enabling this option is known to be very slow since ... And as expected, removing parserOptions.project speeds up eslint to ...
Read more >How to optimize a serverless typescript eslint webpack setup ...
If your typescript, eslint or webpack setup is slow, you can follow the tips below to optimise them. Optimising Typescript — tsconfig.json.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try this https://github.com/vuejs/vue-eslint-parser/issues/104#issuecomment-875149361
The reason is in https://github.com/vuejs/vue-eslint-parser/issues/104.