From 55d7364ea2b36802f58921242ee86bc6471fe08c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 16:19:27 +0400 Subject: feat(eslint): Rule "object-curly-newline" 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 dc707a9..58b7e78 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -222,7 +222,7 @@ - [ ] "no-whitespace-before-property" - [ ] "no-with" - [ ] "nonblock-statement-body-position" -- [ ] "object-curly-newline" +- [X] "object-curly-newline" - [X] "object-curly-spacing" - [ ] "object-property-newline" - [ ] "object-shorthand" diff --git a/src/rules/eslint.json b/src/rules/eslint.json index adb6db2..10b053b 100644 --- a/src/rules/eslint.json +++ b/src/rules/eslint.json @@ -108,6 +108,14 @@ "allowIndentationTabs": true } ], + "object-curly-newline": [ + "error", + { + "consistent": true, + "minProperties": 2, + "multiline": true + } + ], "object-curly-spacing": [ "error", "always", -- cgit v1.2.3