Argument of type '{ rules: any; name: string; plugins: { unicorn: { meta: { name: string; version: string; }; rules: { [x: string]: RuleModule; }; }; }; languageOptions: { globals: any; }; } | { rules: any; plugins: string[]; env: { ...; }; parserOptions: { ...; }; }' is not assignable to parameter of type 'ConfigWithExtends'.
Type '{ rules: any; plugins: string[]; env: { es2024: boolean; }; parserOptions: { ecmaVersion: string; sourceType: string; }; }' is not assignable to type 'ConfigWithExtends'.
Types of property 'plugins' are incompatible.
Type 'string[]' is not assignable to type 'Plugins'.
Index signature for type 'string' is missing in type 'string[]'.ts(2345)
Type checking fails in eslint.config.js containing:
First error is:
which can be fixed by the following change in index.js:
The following error is:
Not sure if this is valid change in index.js: