You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Error react/prop-types , although the type has been specified
this is error:
importReact,{forwardRef,memo}from'react';interfaceProps1{
age: number;}exportconstHello=memo(forwardRef(({ age }: Props1)=>{// error: 'age' is missing in props validationeslint(react/prop-types)return<div>Hello {age}</div>;}),);
but this is correct:
importReact,{forwardRef,memo}from'react';interfaceProps1{
age: number;}constHelloTemp=forwardRef(({ age }: Props1)=>{return<div>Hello {age}</div>;});exportconstHello=memo(HelloTemp);
Expected Behavior
Expected no error
eslint-plugin-react version
v7.30.1
eslint version
v8.29.0
node version
v16.19.0
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Description Overview
Error react/prop-types , although the type has been specified
this is error:
but this is correct:
Expected Behavior
Expected no error
eslint-plugin-react version
v7.30.1
eslint version
v8.29.0
node version
v16.19.0
The text was updated successfully, but these errors were encountered: