Skip to content

Commit 0e4d984

Browse files
committed
Add object-shorthand rule as warning
1 parent 66d2a19 commit 0e4d984

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
@@ -190,6 +190,7 @@
190190
"object-curly-newline": ["error", { "multiline": true, "consistent": true }],
191191
"object-curly-spacing": ["error", "always"],
192192
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
193+
"object-shorthand": ["warn", "properties"],
193194
"one-var": ["error", { "initialized": "never" }],
194195
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "|>": "before" } }],
195196
"padded-blocks": ["error", { "blocks": "never", "switches": "never", "classes": "never" }],

0 commit comments

Comments
 (0)