jsx-eslint/eslint-plugin-react

no-unused-prop-types cannot detect unused property

Open

#880 opened on 2016年10月3日

GitHub で見る
 (2 comments) (1 reaction) (0 assignees)JavaScript (8,630 stars) (2,797 forks)batch import
bughelp wanted

説明

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}].

コントリビューターガイド

no-unused-prop-types cannot detect unused property · jsx-eslint/eslint-plugin-react#880 | Good First Issue