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

Support experimental object spread #163

Closed
nzakas opened this issue Jul 14, 2015 · 5 comments
Closed

Support experimental object spread #163

nzakas opened this issue Jul 14, 2015 · 5 comments

Comments

@nzakas
Copy link
Member

nzakas commented Jul 14, 2015

Object spread is an experimental feature, however, React encourages its use and as such it is one of the most commonly requested features. While this does not mean we will start supporting experimental features, we will make an exception because this keeps coming up as holding back React users from using ESLint out of the box.

The feature should be named experimentalObjectRestSpread and allow this syntax:

let { ...foo } = bar;
let foo = { a, ...b };

Full spec: https://github.com/sebmarkbage/ecmascript-rest-spread

@xjamundx
Copy link
Contributor

Love this!

@nzakas
Copy link
Member Author

nzakas commented Jul 15, 2015

Working on this.

@bradwestfall
Copy link

What was the result of this? My eslint still complains about {foo, ...bar}. Is there a configuration to fix?

@ilyavolodin
Copy link
Member

@bradwestfall http://eslint.org/docs/user-guide/configuring#specifying-parser-options you are looking for experimentalObjectRestSpread

@bradwestfall
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants