diff options
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -225,7 +225,7 @@ - [X] "object-curly-newline" - [X] "object-curly-spacing" - [X] "object-property-newline" -- [ ] "object-shorthand" +- [X] "object-shorthand" - [X] "one-var" - [ ] "one-var-declaration-per-line" - [ ] "operator-assignment" diff --git a/src/rules/default.json b/src/rules/default.json index a2f5c79..905aa50 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -384,6 +384,10 @@ "allowAllPropertiesOnSameLine": false } ], + "object-shorthand": [ + "error", + "consistent-as-needed" + ], "one-var": [ "error", "never" |