question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Very slow with typescript-eslint parser and `project`

See original GitHub issue

Hi! 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:open
  • Created 4 years ago
  • Reactions:5
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found