-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
fix: user errorissue was fixed by correcting the configuration / correcting the codeissue was fixed by correcting the configuration / correcting the codelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.performanceIssues regarding performanceIssues regarding performance
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
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 direct dependencies
and devDependencies
across all projects is around 30. Work on Ubuntu 22.04.
ESLint Config
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
parserOptions: {
project: [
'./packages/*/tsconfig.json',
'./examples/*/tsconfig.json',
]
},
},
},
{
rules: {
semi: ['error', 'always'],
quotes: ['error', 'single', { avoidEscape: true }],
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-unused-expressions': 'warn',
'@typescript-eslint/no-misused-promises': 0,
'@typescript-eslint/no-empty-object-type': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-inferrable-types': 0,
'@typescript-eslint/no-non-null-asserted-optional-chain': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/triple-slash-reference': 0,
'@typescript-eslint/ban-types': 0,
'no-async-promise-executor': 0,
'no-prototype-builtins': 0,
},
},
{
ignores: [
'**/dist*',
'**/*.d.ts',
'website/*',
'node_modules/*',
'eslint.config.mjs',
'**/jest.config.ts',
],
},
);
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 my eslint.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
package | version |
---|---|
@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 |
Metadata
Metadata
Assignees
Labels
fix: user errorissue was fixed by correcting the configuration / correcting the codeissue was fixed by correcting the configuration / correcting the codelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.Please open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.performanceIssues regarding performanceIssues regarding performance