jsx-eslint/eslint-plugin-react

no-unused-prop-types cannot detect unused property

オープン

#880 opened on 2016/10/03

 (2 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (2,731 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (9,293 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

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