diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 15:19:27 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 15:19:27 +0300 |
commit | 55d7364ea2b36802f58921242ee86bc6471fe08c (patch) | |
tree | 42e915c9f7e3f9f8cc613c16a93bd3757de58b3c | |
parent | 90014ad8f6e70454d40614ab4ce53788ff558b7e (diff) | |
download | eslint-config-55d7364ea2b36802f58921242ee86bc6471fe08c.tar.xz eslint-config-55d7364ea2b36802f58921242ee86bc6471fe08c.zip |
feat(eslint): Rule "object-curly-newline"
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
@@ -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", |