feat(eslint): Rule "no-empty"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 01:18:16 +04:00
parent 53aa29b89a
commit cefbe49db9
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 7 additions and 1 deletions

View File

@ -106,7 +106,7 @@
- [ ] "no-duplicate-case" - [ ] "no-duplicate-case"
- [ ] "no-duplicate-imports" - [ ] "no-duplicate-imports"
- [ ] "no-else-return" - [ ] "no-else-return"
- [ ] "no-empty" - [X] "no-empty"
- [ ] "no-empty-character-class" - [ ] "no-empty-character-class"
- [ ] "no-empty-function" - [ ] "no-empty-function"
- [ ] "no-empty-pattern" - [ ] "no-empty-pattern"

View File

@ -197,6 +197,12 @@
"no-debugger": [ "no-debugger": [
"warn" "warn"
], ],
"no-empty": [
"warn",
{
"allowEmptyCatch": false
}
],
"no-eval": [ "no-eval": [
"error", "error",
{ {