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
[Fix] prop-types
: handle RestElement in destructured param
#2805
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thank you for the quick review! |
Same problem with |
@alexfdz an issue, or better, a PR with a failing test case, would be appreciated (and would be fixed the fastest) |
Not fixed yet, e.g. |
…r when destructured param see jsx-eslint#2805, jsx-eslint#2804, jsx-eslint#2805 (comment)
@ljharb I have fixed error got when |
…r when destructured param see jsx-eslint#2805, fixes jsx-eslint#2804, jsx-eslint#2805 (comment)
…r when destructured param see #2805, fixes #2804, jsx-eslint/eslint-plugin-react#2805 (comment)
Summary
This pr fixes: #2804 .
Function parameter will have
RestElement
which do not have property value.It will cause undefined property error.