From cefbe49db91a5c6a9ebac32efc77dc226662d38a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 01:18:16 +0400 Subject: feat(eslint): Rule "no-empty" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 4eb18a3..1e6ec8a 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -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", { -- cgit v1.2.3