Bug: huge memory consumption #10516
Labels
fix: user error
issue was fixed by correcting the configuration / correcting the code
locked due to age
Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.
performance
Issues regarding performance
Before You File a Bug Report Please Confirm You Have Done The Following...
Relevant Package
typescript-eslint
Playground Link
No response
Repro steps
I have an open-source monorepository containing approximately 650 files and 42,000 lines of code. This project uses TypeScript Project References and Lerna, with each package having its own
tsconfig.json
. The total external directdependencies
anddevDependencies
across all projects is around 30. Work on Ubuntu 22.04.ESLint Config
tsconfig
Expected Result
The
typescript-eslint
plugin should not consume so much memory.Actual Result
As soon as I activate the line
...tseslint.configs.recommended
in myeslint.config.mjs
, restart VS Code, and open a file, for example,examples/20-authjs/src/app/app.module.ts
, memory usage growing to 3.2 GB in one of the processes.I tried using EXPERIMENTAL_useProjectService: true in
eslint.config.mjs
, but it didn't help.Additional Info
No response
Versions
@typescript-eslint/eslint-plugin
8.18.1
@typescript-eslint/parser
8.18.1
@typescript-eslint/rule-tester
@typescript-eslint/scope-manager
8.18.1
@typescript-eslint/typescript-estree
8.18.1
@typescript-eslint/type-utils
8.18.1
@typescript-eslint/utils
8.18.1
TypeScript
5.7.2
ESLint
9.17.0
node
22.12.0
The text was updated successfully, but these errors were encountered: