aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 00:18:16 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 00:18:16 +0300
commitcefbe49db91a5c6a9ebac32efc77dc226662d38a (patch)
tree1b1f7c481e03028eace6315ff28bcb4e0f388cdd
parent53aa29b89a118069299ad2dd1d88df9698e2fe9a (diff)
downloadeslint-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.md2
-rw-r--r--src/rules/default.json6
2 files changed, 7 insertions, 1 deletions
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",
{