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 boolean-prop-naming with Object.spread syntax #1485

Merged
merged 1 commit into from Oct 17, 2017

Conversation

track0x1
Copy link
Contributor

@track0x1 track0x1 commented Oct 17, 2017

There is an issue where using Object.spread syntax with this rule causes Eslint to break as it attempts to look for node.value.property in a spread object. We avoid validating spread nodes by checking for the ExperimentalSpreadProperty type.

Reopened #1482 (github wasn't showing new commit) @ljharb

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. It'd be good to rebase this down to one commit, but please don't open a third PR if you have trouble.

@ljharb ljharb added the bug label Oct 17, 2017
@track0x1 track0x1 force-pushed the fix-boolean-prop-naming-spread branch from 515cfb5 to 2d4a73c Compare October 17, 2017 15:53
@track0x1 track0x1 force-pushed the fix-boolean-prop-naming-spread branch from 2d4a73c to 67f1cc8 Compare October 17, 2017 18:24
@track0x1
Copy link
Contributor Author

@ljharb Done!

@ljharb ljharb merged commit 20ea1fb into jsx-eslint:master Oct 17, 2017
@track0x1 track0x1 deleted the fix-boolean-prop-naming-spread branch October 17, 2017 21:20
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.

None yet

2 participants