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
importReact,{PropTypes}from'react';functionSummary({index, day }){return(<li><h3>{index+1}</h3><p>{day.todos.map(todo=>todo.title).join(',')}</p></li>);}Summary.propTypes={index: PropTypes.number,day: PropTypes.shape({todos: PropTypes.arrayOf(PropTypes.shape({title: PropTypes.string,})),}),};
when I run lint, I got this error.
**:** error 'day.todos' PropType is defined but prop is never used react/no-unused-prop-types
**:** error 'day.todos.*.title' PropType is defined but prop is never used react/no-unused-prop-types
The text was updated successfully, but these errors were encountered:
The no-unused-prop-types rule does not support shape props at the moment as such detection is very difficult. If you use shape props, I recommend setting the skipShapeProps option to true on the rule.
Duplicate of #819. Will track further discussion of shape props there.
I have something like this
when I run lint, I got this error.
The text was updated successfully, but these errors were encountered: