From 46abf32d58915ba5da1374ac1f0a114174db41d0 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:16:26 +0400 Subject: feat(eslint): Rule "object-shorthand" Signed-off-by: Valentin Popov --- src/rules/default.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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" -- cgit v1.2.3