aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 14:31:49 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 14:31:49 +0300
commit053bd64fa474f8d390631543c41b936b78354172 (patch)
treecdaf8da8178fa56c2887adeafaa843c43f324e7d
parent2ffee5d7a351385e21bc73cf1780f1362f7d66bb (diff)
downloadeslint-config-053bd64fa474f8d390631543c41b936b78354172.tar.xz
eslint-config-053bd64fa474f8d390631543c41b936b78354172.zip
feat(eslint): Rule "object-curly-spacing"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json8
2 files changed, 9 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 62aafbe..318e65d 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -223,7 +223,7 @@
- [ ] "no-with"
- [ ] "nonblock-statement-body-position"
- [ ] "object-curly-newline"
-- [ ] "object-curly-spacing"
+- [X] "object-curly-spacing"
- [ ] "object-property-newline"
- [ ] "object-shorthand"
- [X] "one-var"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index d512ede..500c670 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -64,6 +64,14 @@
"allowIndentationTabs": true
}
],
+ "object-curly-spacing": [
+ "error",
+ "always",
+ {
+ "arraysInObjects": false,
+ "objectsInObjects": false
+ }
+ ],
"one-var": [
"error",
"never"