Skip to content

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.

2 participants