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

Add defensive coding to support experimental object spread properties #189

Conversation

Morantron
Copy link
Contributor

In a file like this with experimental object spread properties syntax:

function lol(a, b, c) {
  return {...a, b, c};
}

The following rules were throwing an error because node.property is undefined in a property node of type ExperimentalSpreadProperty.

Not sure if this is the right approach, but at least it allows me to run eslint!

@yannickcr yannickcr merged commit 9842eb6 into jsx-eslint:master Aug 16, 2015
@yannickcr
Copy link
Member

Thanks for the fix!

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