-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
JSX spread operator not supported? #44
Comments
The error comes from ESLint and not the plugin. Seems it's parser Espree does not support the spread operator in destructuring assignment. |
Espree is supposed to support both the destructuring and spread operators. I will raise an issue there. Thanks. |
FYI: eslint/espree#116 |
Based on the comments in eslint/espree#116, it doesn't look like espree will be supporting this until the notation is standardized. However |
Ok, I try to support the Also, since #46 this is fixed, you should be able to fully use the spread operator while destructuring props. |
👍 |
eslint 0.18.0 with eslint-react-plugin 2.0.1 returns
Unexpected token ..
with a JSX spread operator:spread.js:
.eslintrc:
The text was updated successfully, but these errors were encountered: