question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support experimental object spread

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
ilyavolodincommented, Apr 15, 2016
1reaction
bradwestfallcommented, Apr 15, 2016

Thank you

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found