-
- Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
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
pplancq, xsjcTony, ErlingHauan, stephane-ruhlmann, kuoruan and 1 more