Skip to content

Argument of type 'FlatConfig<RulesRecord>' is not assignable to parameter of type 'InfiniteDepthConfigWithExtends'. #2683

@Pnlvfx

Description

@Pnlvfx

After upgrading to eslint:

eslint.config.js:11:3 - error TS2345: Argument of type 'FlatConfig' is not assignable to parameter of type 'InfiniteDepthConfigWithExtends'.
Type 'Config' is not assignable to type 'ConfigWithExtends'.
Types of property 'languageOptions' are incompatible.
Type 'import("node_modules/eslint/lib/types/index").Linter.LanguageOptions | undefined' is not assignable to type 'import("node_modules/@typescript-eslint/utils/dist/ts-eslint/Config").FlatConfig.LanguageOptions | undefined'.
Type 'import("/Users/simo97/Desktop/web/packages/iptv/node_modules/eslint/lib/types/index").Linter.LanguageOptions' is not assignable to type 'import("/Users/simo97/Desktop/web/packages/iptv/node_modules/@typescript-eslint/utils/dist/ts-eslint/Config").FlatConfig.LanguageOptions'.
Types of property 'ecmaVersion' are incompatible.
Type 'EcmaVersion | undefined' is not assignable to type 'EcmaVersion'.
Type '17' is not assignable to type 'EcmaVersion'.

11 unicorn.configs.all,
~~~~~~~~~~~~~~~~~~~

Found 1 error in eslint.config.js:11

"@eslint/js": "^9.29.0",
"eslint": "^9.29.0",
"eslint-plugin-unicorn": "^59.0.1",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions