Skip to content
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

Merged
merged 3 commits into from Feb 19, 2018

Conversation

amerryma
Copy link
Contributor

Resolves #1684

I've added the shouldComponentUpdate to the list of functions to include with this rule, following how componentWillReceiveProps 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.

Copy link
Member

@ljharb ljharb left a 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?

@amerryma
Copy link
Contributor Author

@ljharb Thanks for your review! I've made the changes requested.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ljharb ljharb merged commit c996740 into jsx-eslint:master Feb 19, 2018
This was referenced Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants