aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 15:15:04 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 15:15:04 +0300
commitb19f79913de6b650ba3a90470831db1f63c4f099 (patch)
tree86ce23fafd604970e053e8fe42f56980375557b7
parente1ace2d6d2e6dd1d68f041df76adf261a0e7ba94 (diff)
downloadeslint-config-b19f79913de6b650ba3a90470831db1f63c4f099.tar.xz
eslint-config-b19f79913de6b650ba3a90470831db1f63c4f099.zip
fix(eslint): Rule "object-shorthand"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--src/rules/javascript/default.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rules/javascript/default.json b/src/rules/javascript/default.json
index 25be407..bc42d8f 100644
--- a/src/rules/javascript/default.json
+++ b/src/rules/javascript/default.json
@@ -465,7 +465,12 @@
],
"object-shorthand": [
"error",
- "consistent-as-needed"
+ "always",
+ {
+ "avoidExplicitReturnArrows": true,
+ "avoidQuotes": false,
+ "ignoreConstructors": false
+ }
],
"one-var": [
"error",