We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug (?)
Shape validation does not recognize deconstructed props attribute. 'bar.baz' PropType is defined but prop is never used react/no-unused-prop-types
'bar.baz' PropType is defined but prop is never used react/no-unused-prop-types
Failing example with deconstructed props:
const Foo = ({bar}) => ( <div> {bar.baz} </div> ); Foo.propTypes = { bar: React.PropTypes.shape({ baz: React.PropTypes.string, }), };
Working example with non deconstructed props:
const Foo = (props) => ( <div> {props.bar.baz} </div> ); Foo.propTypes = { bar: React.PropTypes.shape({ baz: React.PropTypes.string, }), };
The text was updated successfully, but these errors were encountered:
That's an issue with the hinting-software you're using, specifically a react plugin for it. Not React.
Sorry, something went wrong.
Looks like you're using eslint-plugin-react. You're best bet is to direct your question there https://github.com/yannickcr/eslint-plugin-react
My bad, thanks for pointing that out :)
No branches or pull requests
Bug (?)
Shape validation does not recognize deconstructed props attribute.
'bar.baz' PropType is defined but prop is never used react/no-unused-prop-types
Failing example with deconstructed props:
Working example with non deconstructed props:
The text was updated successfully, but these errors were encountered: