-
-
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
Rule prop-types includes nextProps checking in shouldComponentUpdate #1690
Rule prop-types includes nextProps checking in shouldComponentUpdate #1690
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, this looks great! Could you also add a duplicate test so that one uses babel-eslint, and the other uses the default parser?
…ts. Added a default parser test.
@ljharb Thanks for your review! I've made the changes requested. |
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.
LGTM!
Resolves #1684
I've added the
shouldComponentUpdate
to the list of functions to include with this rule, following howcomponentWillReceiveProps
was implemented.The only thing outstanding are the tests, I've only included a single test but it may need to be put in a different spot.