This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 885
Enforce usage of object literal property value shorthand syntax #304
Milestone
Comments
+1 for a new rule that enforces this. It could be called |
👍 to both the rule and the name |
We have another rule that operates on object literals called |
sounds unnecessarily verbose. |
actually, no. you're right, let's do that. I think |
This rule should also handle functions in object literals. good: const iterableThing = {
[Symbol.iterator]() {
...
},
next() {
...
}
} bad: const iterableThing = {
[Symbol.iterator]: function () {
...
},
next: function () {
...
}
} |
This is |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
See: http://ariya.ofilabs.com/2013/02/es6-and-object-literal-property-value-shorthand.html
The text was updated successfully, but these errors were encountered: