Skip to content

Commit 01168be

Browse files
committed
Add object-shorthand rule
1 parent 3f4a3fe commit 01168be

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
"object-curly-newline": ["error", { "multiline": true, "consistent": true }],
170170
"object-curly-spacing": ["error", "always"],
171171
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
172+
"object-shorthand": ["error", "properties"],
172173
"one-var": ["error", { "initialized": "never" }],
173174
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "|>": "before" } }],
174175
"padded-blocks": ["error", { "blocks": "never", "switches": "never", "classes": "never" }],

0 commit comments

Comments
 (0)