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

Fix no-unused-state crash #2098

Merged
merged 1 commit into from Dec 28, 2018
Merged

Fix no-unused-state crash #2098

merged 1 commit into from Dec 28, 2018

Conversation

jomasti
Copy link
Contributor

@jomasti jomasti commented Dec 28, 2018

Don't assume classInfo.aliases is a set since there are some cases where
it is null for a ClassProperty.

Fixes #2096

Don't assume `classInfo.aliases` is a set since there are some cases where
it is `null` for a `ClassProperty`.
// Don't error out
code: `
class Foo extends Component {
handleChange = function() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This and the next test case were what I could find that would reproduce the error. It seems like weird usages, but it won't error out.

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!

@ljharb ljharb merged commit 254a84a into jsx-eslint:master Dec 28, 2018
@jomasti jomasti deleted the issue-2096 branch December 28, 2018 21:21
This was referenced Jan 1, 2019
This was referenced Jan 7, 2019
@ghost ghost mentioned this pull request Jan 12, 2019
1 task
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