-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
react/prop-types false positive when component is exported to a different name #2051
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
Comments
Certainly the |
Agreed. But figured it was still a bug so I'd report it. |
Hmm I pasted this entire example as a test for 7.11.1 and it passed |
In that case let’s add the test case in a PR and close the issue. It’s possible this is a bug fixed in master but not yet released. |
oh cool, according to the build in #2068 this does fail on ESLint 5. |
Also, this has been filed before in #1957 |
I have a component that is giving me false positives saying that a proptype is not defined.
'children' is missing in props validation react/prop-types
Here's an example
and it works if I change commented line above to this
At first I thought #1958 was related but on second look it doesn't seem to be. I also tried downgrading to 7.10.0 and that didn't help.
I don't see anything wrong with that syntax, but please point out if I'm missing something. Thanks!
The text was updated successfully, but these errors were encountered: