jsx-eslint/eslint-plugin-react
Auf GitHub ansehenno-unused-prop-types cannot detect unused property
Open
#880 geöffnet am 3. Okt. 2016
bughelp wanted
Repository-Metriken
- Stars
- (8.630 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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}].