From 649ad0f879ac873bec652b2c71dc0fe27e787920 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 23:51:19 +0400 Subject: feat(eslint): Rule "object-property-newline" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index e50f86b..da55dc5 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -224,7 +224,7 @@ - [ ] "nonblock-statement-body-position" - [X] "object-curly-newline" - [X] "object-curly-spacing" -- [ ] "object-property-newline" +- [X] "object-property-newline" - [ ] "object-shorthand" - [X] "one-var" - [ ] "one-var-declaration-per-line" diff --git a/src/rules/default.json b/src/rules/default.json index 7a6f64b..249b189 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -285,6 +285,12 @@ "objectsInObjects": false } ], + "object-property-newline": [ + "error", + { + "allowAllPropertiesOnSameLine": false + } + ], "one-var": [ "error", "never" -- cgit v1.2.3