Skip to content

[Bug]: react/prop-types false positives since upgrading typescript-eslint to v8 #3796

@dan-serendipity

Description

@dan-serendipity

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

Since upgrading @typescript-eslint/eslint-plugin and @typescript-eslint/parser to v8.0.1, I'm getting false positives for react/prop-types. It looks like this might have been an issue before.

(I know v8 has only just been released. 🙏)

const X = forwardRef<HTMLDivElement, PropsWithChildren>(({ children }, ref) => <div ref={ref}>{children}</div>); X.displayName = 'X'; 

'children' is missing in props validation eslint(react/prop-types)

Expected Behavior

No error.

eslint-plugin-react version

v7.35.0

eslint version

v8.57.0

node version

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions