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
require-default-props does not detect properties in quotes #1201
Labels
Comments
While unnecessarily quoted keys isn't my preferred style, I agree this should work. I think it should also work as a computed template literal with no interpolations. |
Fixed it for quoted properties. I will add template literal support in another patch. |
This was referenced Sep 22, 2018
This was referenced Oct 25, 2018
1 task
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I've got an issue with code like this
triggers the message:
propType "isOverdue" is not required, but has no corresponding defaultProp declaration. (react/require-default-props)
changing the declaration to
omits the error.
I don't think quotes should have an effect on detecting defaultProps. Maybe I'm wrong ;-)
The text was updated successfully, but these errors were encountered: