jsx-eslint/eslint-plugin-react

no-unused-prop-types cannot detect unused property

Open

#880 创建于 2016年10月3日

在 GitHub 查看
 (2 评论) (1 反应) (0 负责人)JavaScript (8,630 star) (2,797 fork)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}].

贡献者指南