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
Rule: "react/no-unused-prop-types": ["warn", { "customValidators": [], "skipShapeProps": true }],
"react/no-unused-prop-types": ["warn", { "customValidators": [], "skipShapeProps": true }],
Code sample:
import React, { PropTypes } from 'react'; import { ScrollView, Text, } from 'react-native'; const UserDetails = ({ user }) => ( <ScrollView> <Text>{user.name}</Text> <Text>{user.age}</Text> <Text>{user.gender}</Text> <Text>{user.email}</Text> </ScrollView> ); UserDetails.propTypes = { user: PropTypes.shape({ name: PropTypes.string.isRequired, age: PropTypes.number.isRequired, gender: PropTypes.string.isRequired, email: PropTypes.string.isRequired, }).isRequired, };
This will give me false positives PropType is defined but props is never used.
PropType is defined but props is never used
References: @EvNaverniouk : #611 (comment)
The text was updated successfully, but these errors were encountered:
no-unused-prop-types
I'm unable to reproduce this on the latest 6.3.0 version. Is this still happening for you @tristanbbq?
6.3.0
Sorry, something went wrong.
@EvNaverniouk sorry didn't get the chance to try it out again yet. Feel free to close if you think it's fixed.
EvHaus
No branches or pull requests
Rule:
"react/no-unused-prop-types": ["warn", { "customValidators": [], "skipShapeProps": true }],
Code sample:
This will give me false positives
PropType is defined but props is never used
.References:
@EvNaverniouk : #611 (comment)
The text was updated successfully, but these errors were encountered: