jsx-eslint/eslint-plugin-react
在 GitHub 查看no-unused-prop-types cannot detect unused property
Open
#880 建立於 2016年10月3日
bughelp wanted
倉庫指標
- Star
- (8,630 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
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}].