Are you using object spread? I had to add:
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
}
To my eslintrc to have it working. Thanks
Since object spread is not yet standard (it's still only stage 2), we do not yet support or recommend it.
@ljharb, You say you don't use it or recommend object spreads but they're here in the styleguide. Does Airbnb support them now?
Yep, as of last week, they're now stage 3
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)
@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.
Most helpful comment
@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.