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
If I have a regular class (non-component) that has a property called props, the react/prop-types rule will complain about missing props validation.
class MyClass { myMethod() { return this.props.test; } }
3:11 error 'test' is missing in props validation for MyClass react/prop-types
This should only happen for classes that extend React.Component or extend a class that extends React.Component.
React.Component
eslint-plugin-react 2.0.1
The text was updated successfully, but these errors were encountered:
Right, there is a bug in the React component detection.
Sorry, something went wrong.
04cb124
No branches or pull requests
If I have a regular class (non-component) that has a property called props, the react/prop-types rule will complain about missing props validation.
This should only happen for classes that extend
React.Component
or extend a class that extends React.Component.eslint-plugin-react 2.0.1
The text was updated successfully, but these errors were encountered: