diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 00:18:16 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 00:18:16 +0300 |
commit | cefbe49db91a5c6a9ebac32efc77dc226662d38a (patch) | |
tree | 1b1f7c481e03028eace6315ff28bcb4e0f388cdd | |
parent | 53aa29b89a118069299ad2dd1d88df9698e2fe9a (diff) | |
download | eslint-config-cefbe49db91a5c6a9ebac32efc77dc226662d38a.tar.xz eslint-config-cefbe49db91a5c6a9ebac32efc77dc226662d38a.zip |
feat(eslint): Rule "no-empty"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -106,7 +106,7 @@ - [ ] "no-duplicate-case" - [ ] "no-duplicate-imports" - [ ] "no-else-return" -- [ ] "no-empty" +- [X] "no-empty" - [ ] "no-empty-character-class" - [ ] "no-empty-function" - [ ] "no-empty-pattern" diff --git a/src/rules/default.json b/src/rules/default.json index d3b3cb1..0621268 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -197,6 +197,12 @@ "no-debugger": [ "warn" ], + "no-empty": [ + "warn", + { + "allowEmptyCatch": false + } + ], "no-eval": [ "error", { |