We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
object-shorthand
1 parent 28a83da commit b150039Copy full SHA for b150039
packages/eslint-config-airbnb/rules/es6.js
@@ -40,7 +40,8 @@ module.exports = {
40
// require let or const instead of var
41
'no-var': 2,
42
// require method and property shorthand syntax for object literals
43
- 'object-shorthand': 0,
+ // https://github.com/eslint/eslint/blob/master/docs/rules/object-shorthand.md
44
+ 'object-shorthand': [2, "always", { "ignoreConstructors": true }],
45
// suggest using of const declaration for variables that are never modified after declared
46
'prefer-const': 2,
47
// suggest using the spread operator instead of .apply()
0 commit comments