Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Labels
Milestone
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 havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Issue Description
After upgrading a fairly standard Vue + TypeScript project (ESLint from v8 to v9, andtypescript-eslint
from v7 to v8), with a similar configuration the linting time goes from +/- 20 seconds to 3 minutes.
The command iseslint src
, wheresrc
is a directory containing only.ts
and.vue
files.
Old.eslintrc.json
:
{"root":true,"parser":"vue-eslint-parser","parserOptions": {"parser":"@typescript-eslint/parser","project":true,"extraFileExtensions": [".vue"] },"extends": ["plugin:@typescript-eslint/strict-type-checked","plugin:@typescript-eslint/stylistic-type-checked","plugin:vue/vue3-recommended","prettier" ],"overrides": [ {"files": ["src/types/*.d.ts"],"rules": {"@typescript-eslint/no-extraneous-class": ["error", {"allowConstructorOnly":true }] } } ]}
Neweslint.config.js
importeslintConfigPrettierfrom'eslint-config-prettier';importpluginVuefrom'eslint-plugin-vue';importtseslintfrom'typescript-eslint';exportdefaulttseslint.config( ...tseslint.configs.strictTypeChecked, ...tseslint.configs.stylisticTypeChecked, ...pluginVue.configs['flat/recommended'],eslintConfigPrettier,{languageOptions:{parserOptions:{parser:tseslint.parser,projectService:true,extraFileExtensions:['.vue']}}},{rules:{'@typescript-eslint/no-unused-vars':['error',{caughtErrorsIgnorePattern:'ignore'}]}},{files:['src/types/*.d.ts'],rules:{'@typescript-eslint/no-extraneous-class':['error',{allowConstructorOnly:true}]}},{ignores:['eslint.config.js']});
Reproduction Repository Link
Private repository but I can give people access to it
Repro Steps
- clone the repo
pnpm install
pnpm lint
Versions
package | version |
---|---|
typescript-eslint | 8.0.0-alpha.29 |
TypeScript | 5.4.5 |
ESLint | 9.4.0 |
node | 22.2.0 |