feat(eslint): Rule "no-constant-condition"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 01:20:54 +04:00
parent 43ccb96a99
commit 228ad3183c
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 7 additions and 1 deletions

View File

@ -92,7 +92,7 @@
- [ ] "no-confusing-arrow"
- [X] "no-console"
- [ ] "no-const-assign"
- [ ] "no-constant-condition"
- [X] "no-constant-condition"
- [ ] "no-constructor-return"
- [ ] "no-continue"
- [ ] "no-control-regex"

View File

@ -194,6 +194,12 @@
"no-console": [
"warn"
],
"no-constant-condition": [
"error",
{
"checkLoops": true
}
],
"no-debugger": [
"warn"
],