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

no-did-mount-set-state with cDU or cDM as ClassProperties #1613

Merged
merged 1 commit into from May 28, 2019

Conversation

jaaberg
Copy link
Contributor

@jaaberg jaaberg commented Dec 16, 2017

This fixes #1595, catching this.setState used within cDU/cDM when cDU/cDM is defined as ClassProperties.

Even though defining cDU/cDM as ClassProperties may not be the smartest thing to do, this rule should still handle it.

…tate in cDU and cDM when defined as ClassProperties
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, thanks!

@ljharb ljharb merged commit f7a9fb5 into jsx-eslint:master May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

no-did-mount-set-state with arrow functions & React.Component?
3 participants