Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

prefer-object-spread: this is new to ES2018, not ES2015 #4321

Merged
merged 1 commit into from
Nov 29, 2018
Merged

prefer-object-spread: this is new to ES2018, not ES2015 #4321

merged 1 commit into from
Nov 29, 2018

Conversation

vapier
Copy link
Contributor

@vapier vapier commented Nov 28, 2018

Support for spread properties in object literals wasn't added until
ES2018, not ES2015. The proposal is here:
https://github.com/tc39/proposal-object-rest-spread

And MDN documents it as such too:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#Spread_in_object_literals

@palantirtech
Copy link
Member

Thanks for your interest in palantir/tslint, @vapier! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amusing; nice catch. Thanks for this!

@JoshuaKGoldberg JoshuaKGoldberg added the PR: waiting for CLA Waiting for the author to sign the CLA label Nov 28, 2018
@vapier
Copy link
Contributor Author

vapier commented Nov 28, 2018

i've signed the CLA now. had to check with my company first.

@JoshuaKGoldberg JoshuaKGoldberg merged commit 431a1f1 into palantir:master Nov 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR: waiting for CLA Waiting for the author to sign the CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants