Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upStructuring name duplicate #223
Comments
dcousens
added
the
question
label
Aug 5, 2015
This comment has been minimized.
This comment has been minimized.
|
Right now, we're not actively pushing people toward ES6 features, so I'm -1. If we end up detecting ES6 (discussion here: #159) then we should recommend |
feross
closed this
Aug 5, 2015
This comment has been minimized.
This comment has been minimized.
jokeyrhyme
commented
Sep 15, 2015
|
@dcousens ESLint calls this "object shorthand properties" and "object shorthand methods", and has an object-shorthand rule. |
lock
bot
locked as resolved and limited conversation to collaborators
May 11, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
dcousens commentedAug 5, 2015
I'm not sure of exact name for this syntax, but [assuming ES6 is detected], should we allow both of these syntaxes:
{ x: x }and{ x }?Or should we force
{ x }if both the lhs and rhs match?