I'm trying to use ESLint's new FlatConfig and typescript-eslint's tseslint.configs.strictTypeChecked enabled for stricter type checking and linting. However, ESLint reports the lint error below for eslint-plugin-perfectionist due to missing types from the package:
20:3 error Unsafe argument of type `any` assigned to a parameter of type `ConfigWithExtends` @typescript-eslint/no-unsafe-argument
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.
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