-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
False positives about missing props for functional components #472
Comments
I am still seeing false positives with the following syntax. Not sure what I'm missing. This is with v4.1.0 and
And this is the message I see: |
So it looks like this might not be supported syntax according to this: Looks like the |
It definitely shouldn't be because I'm pretty sure that doesn't work. With React.createClass, you need to include |
No, you don't have to do it that way. My entire app is structured like my example above and it works fine. I think this prop-types rule is a great rule and I want to be able to apply it without restructuring every component in my application. |
That's entirely undocumented and discouraged (since |
|
With the current version the code below gives false positives about missing proptypes for all props.
eslint 2.2.0
eslint-plugin-react 4.1.0
eslint-config-standard-react 2.3.0
.eslintrc
The text was updated successfully, but these errors were encountered: