We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
{ x: x }
{ x }
The text was updated successfully, but these errors were encountered:
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 { x } over { x: x } - agreed.
Sorry, something went wrong.
@dcousens ESLint calls this "object shorthand properties" and "object shorthand methods", and has an object-shorthand rule.
No branches or pull requests
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?The text was updated successfully, but these errors were encountered: