Open
Description
Right now, when I try to use the plugin in files with type-aware linting and typescript-eslint's recommendedTypeChecked config, I get:
/Users/josh/repos/typescript-eslint-examples/packages/eslint-plugin-example-typed-linting/eslint.config.mjs
9:5 error Unsafe argument of type `any` assigned to a parameter of type `ConfigWithExtends` @typescript-eslint/no-unsafe-argument
...on lines like:
export default tseslint.config(
eslintPlugin.configs['flat/recommended'],
);
The root cause is that the module's exported config
object is inferred from .js
to be {}
:
eslint-plugin-eslint-plugin/lib/index.js
Line 51 in 95b1980
Normally for a project that isn't written in TypeScript I'd just send a PR to DefinitelyTyped. But because this project already has #310 in its issues, I figured I'd give this a shot. 🙂
Metadata
Metadata
Assignees
Labels
No labels