feat(eslint): Rule "no-lone-blocks"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 01:38:42 +04:00
parent dcea1fb8f5
commit 4a828b091d
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 4 additions and 1 deletions

View File

@ -135,7 +135,7 @@
- [X] "no-iterator" - [X] "no-iterator"
- [ ] "no-label-var" - [ ] "no-label-var"
- [X] "no-labels" - [X] "no-labels"
- [ ] "no-lone-blocks" - [X] "no-lone-blocks"
- [ ] "no-lonely-if" - [ ] "no-lonely-if"
- [ ] "no-loop-func" - [ ] "no-loop-func"
- [X] "no-magic-numbers" - [X] "no-magic-numbers"

View File

@ -254,6 +254,9 @@
"no-labels": [ "no-labels": [
"error" "error"
], ],
"no-lone-blocks": [
"error"
],
"no-magic-numbers": [ "no-magic-numbers": [
"warn", "warn",
{ {