Skip to content

[Bug]: typescript-eslint v6 deprecation warnings #3689

Closed as not planned
Closed as not planned
@thomasmarr

Description

@thomasmarr

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

Latest recommended preset has a at least one rule that is using deprecated typeParameters property from typescript-eslint. See https://typescript-eslint.io/linting/troubleshooting/#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings

When running tests I see hundreds of instances of "DeprecationWarning: The 'typeParameters' property is deprecated on CallExpression nodes. Use 'typeArguments' instead. See https://typescript-eslint.io/linting/troubleshooting#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings." in console output.

If I remove "plugin:react/recommended" from the extends property of eslintConfig, the warnings are removed.

There's a fix described at the above link which keeps backward compat with v5 and looks pretty straightforward.

Expected Behavior

Expect no deprecation warnings.

eslint-plugin-react version

v7.33.2

eslint version

v8.56.0

node version

v20.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions