diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 01:16:26 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 01:16:26 +0300 |
commit | 46abf32d58915ba5da1374ac1f0a114174db41d0 (patch) | |
tree | 4bbb05c897f515de603e6cb5a0fae055eab02fce /src | |
parent | ccea0635e4431dcc8bc68207db187c891158f837 (diff) | |
download | eslint-config-46abf32d58915ba5da1374ac1f0a114174db41d0.tar.xz eslint-config-46abf32d58915ba5da1374ac1f0a114174db41d0.zip |
feat(eslint): Rule "object-shorthand"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r-- | src/rules/default.json | 4 |
1 files changed, 4 insertions, 0 deletions
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" |