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
Rule to prevent static PropTypes
#1189
Labels
Comments
That sounds like a good idea. It should probably check for any case variant of |
We could call it |
I will take a look at this. |
@ljharb I think this issue should be closed. |
(Fixed in #1209) |
This was referenced Sep 22, 2018
This was referenced Oct 25, 2018
1 task
1 task
1 task
This was referenced Jan 8, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've noticed this a few places, where people are recording propTypes under a static
PropTypes
member instead of the correct camelCasestatic propTypes
. It would be helpful if there were a lint rule that checks for this, as usingPropTypes
doesn't fail, it just silently doesn't check.The text was updated successfully, but these errors were encountered: