diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 00:38:42 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 00:38:42 +0300 |
commit | 4a828b091d26d467b8ba53707ed3292fbf45d0f7 (patch) | |
tree | 32c2eaf7983864f7e0c6563498513718e16cef07 | |
parent | dcea1fb8f525a912969d7d76d1a9105f1ab8300b (diff) | |
download | eslint-config-4a828b091d26d467b8ba53707ed3292fbf45d0f7.tar.xz eslint-config-4a828b091d26d467b8ba53707ed3292fbf45d0f7.zip |
feat(eslint): Rule "no-lone-blocks"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -135,7 +135,7 @@ - [X] "no-iterator" - [ ] "no-label-var" - [X] "no-labels" -- [ ] "no-lone-blocks" +- [X] "no-lone-blocks" - [ ] "no-lonely-if" - [ ] "no-loop-func" - [X] "no-magic-numbers" diff --git a/src/rules/default.json b/src/rules/default.json index e50530f..8f2d02a 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -254,6 +254,9 @@ "no-labels": [ "error" ], + "no-lone-blocks": [ + "error" + ], "no-magic-numbers": [ "warn", { |