jsx-eslint/eslint-plugin-react
Vedi su GitHubno-unused-prop-types cannot detect unused property
Open
#880 aperta il 3 ott 2016
bughelp wanted
Metriche repository
- Star
- (8630 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
const Comp = (props) => <div className={props.nested.className}>{props.nested.text}</div>;
Comp.propTypes = {
nested: React.PropTypes.object.isRequired,
text: React.PropTypes.string.isRequired
};
Property text should be marked as unused.
Rule configuration: "react/no-unused-prop-types": ["error", {skipShapeProps: true}].