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
The prop-types rule warns always if you don’t specify the propTypes property within a react component even if you don’t use any props.
I suggest to only warn if a used prop is not defined within propTypes. This would also be good if you have specified the propTypes property somehow but not defined every used prop.
So the following should not be considered as a warning:
The
prop-types
rule warns always if you don’t specify thepropTypes
property within a react component even if you don’t use anyprops
.I suggest to only warn if a used prop is not defined within
propTypes
. This would also be good if you have specified thepropTypes
property somehow but not defined every used prop.So the following should not be considered as a warning:
But this should be considered as a warning:
The text was updated successfully, but these errors were encountered: