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.

Are you using object spread? I had to add:

  "parserOptions": {
      "ecmaFeatures": {
          "experimentalObjectRestSpread": true
      }
  }

To my eslintrc to have it working. Thanks

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

2reactions
ljharbcommented, Oct 5, 2016

@silverlight513 yes, the guide assumes you’re using babel, and encourages it (and the linter config requires it implicitly).

Yes, in stage 3, features only change in response to browser feedback about implementation feasibility or web compatibility, and this one in particular is highly unlikely to change.

0reactions
silverlight513commented, Oct 5, 2016

Everyone still needs to use a transpiler right now to use them though. Is the reason they’ve been added is because they’re more of a certainty now and the spec is less likely to change. (Sorry, not up to speed on the stage process)

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
JavaScript Object Spread
Object spread operator ( ... ) unpacks the own enumerable properties of an object. · Use the object spread operator to clone an...
Read more >
JavaScript Object Destructuring, Spread Syntax, and the Rest ...
Spread syntax (also known as the Spread Operator) is used to copy the enumerable properties of an object to create a clone of...
Read more >
How to Use the Spread Operator (…) in JavaScript - Medium
The spread operator is a useful and quick syntax for adding items to arrays, combining arrays or objects, and spreading an array out...
Read more >
The Typescript Object Spread Operator - YouTube
This video is part of the Typescript: The Ultimate Bootcamp Course - https://angular-university.io/course/typescript-bootcampCheck out the ...
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