Support experimental object spread
See original GitHub issueObject 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
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
babel-plugin-experimental-object-rest-spread - npm
Start using babel-plugin-experimental-object-rest-spread in your project by running `npm i babel-plugin-experimental-object-rest-spread`.
Read more >babel/plugin-proposal-object-rest-spread
Please keep in mind that even if they're almost equivalent, there's an important difference between spread and Object.assign : spread defines new properties ......
Read more >Spread syntax (...) - JavaScript - MDN Web Docs - Mozilla
In an object literal, the spread syntax enumerates the properties of an object and adds the key-value pairs to the object being created....
Read more >ESLint doesn't support spread operator in objects · Issue #10307
ESLint does support object rest/spread, but you have to opt in via configuration. You can either set your ecmaVersion to 2018 (in parserOptions) ......
Read more >how to use object spread syntax in chrome dev tools
Save this question. Show activity on this post. I started using object spread syntax to safely make a copy of the object while...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bradwestfall http://eslint.org/docs/user-guide/configuring#specifying-parser-options you are looking for
experimentalObjectRestSpread
Thank you