From 053bd64fa474f8d390631543c41b936b78354172 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 15:31:49 +0400 Subject: feat(eslint): Rule "object-curly-spacing" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3