bug(types): Typing files are missing for tseslint.configs.strictTypeChecked
in FlatConfig
#139
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
I'm trying to use ESLint's new
FlatConfig
andtypescript-eslint
'stseslint.configs.strictTypeChecked
enabled for stricter type checking and linting. However, ESLint reports the lint error below foreslint-plugin-perfectionist
due to missing types from the package:I was quite surprised that a project that is entirely written in TypeScript chose to omit type files completely. It'd be great if type files could be added so that ESLint read the typings of the package correctly without the need to add additional rule to turn off some rules in
eslint.config.*js
for all the users.Code example
pnpm install && pnpm lint
ESLint version
9.1.1
ESLint Plugin Perfectionist version
2.10.0
Additional comments
{
"@eslint/eslintrc": "^3.0.2",
"@eslint/js": "^9.1.1",
"eslint": "^9.1.1",
"eslint-plugin-perfectionist": "^2.10.0",
"typescript-eslint": "^7.7.1"
}
Validations
The text was updated successfully, but these errors were encountered: