diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 14:31:49 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 14:31:49 +0300 |
commit | 053bd64fa474f8d390631543c41b936b78354172 (patch) | |
tree | cdaf8da8178fa56c2887adeafaa843c43f324e7d | |
parent | 2ffee5d7a351385e21bc73cf1780f1362f7d66bb (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/eslint.json | 8 |
2 files changed, 9 insertions, 1 deletions
@@ -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" |