-
-
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
no-unused-prop-types crashes #938
Comments
It would help if you could figure out which file it's crashing on, and specifically which section of code. What not-spec-finalized babel transforms are you using? Are you using flow or TS? |
No flow, no TS.
Above you can find my Below is the source code file for which it fails (even webstorm gives me an error saying
|
Here's a
The line that fails:
|
Can you try not destructuring PropTypes.object and see if that fixes it? |
Even if it does, not sure that'd be a good fix for me. I destruct PropTypes throughout the whole project. I'll give it a go though. |
@ljharb No longer destructing |
I found that however removing
fixed it. Apparently only having
|
Thanks - although it's weird to have a rest prop alone, iirc it's valid, so it should work. Thanks for following up! |
My pleasure. It is indeed valid. Both occurrences (destructed props with only |
is the stack trace that I get when running
esw -c .eslintrc ./src ./webpack ./test --ext '.js, .jsx' --color -w
Specifically turning
"react/no-unused-prop-types":
to2
causes this.Turning it to
0
makes it run again fine.Please let me know if there's anything else that I can provide to help you guys.
Thanks!
The text was updated successfully, but these errors were encountered: