aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:42:37 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:42:37 +0300
commit0d76fb6495e82b1dbed0981246f272badd4dc98b (patch)
tree0cbd56c41651da7ace30cea7f891a1bad96dd3db
parentc6c3b6b7694ff077c483e2558742ef0658d0b701 (diff)
downloadeslint-config-0d76fb6495e82b1dbed0981246f272badd4dc98b.tar.xz
eslint-config-0d76fb6495e82b1dbed0981246f272badd4dc98b.zip
feat(eslint): Rule "no-undef-init"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 43aeb2c..4b50fcc 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -194,7 +194,7 @@
- [ ] "no-throw-literal"
- [ ] "no-trailing-spaces"
- [ ] "no-undef"
-- [ ] "no-undef-init"
+- [X] "no-undef-init"
- [X] "no-undefined"
- [X] "no-underscore-dangle"
- [ ] "no-unexpected-multiline"
diff --git a/src/rules/default.json b/src/rules/default.json
index 62d5ffe..aad6552 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -338,6 +338,9 @@
"no-ternary": [
"off"
],
+ "no-undef-init": [
+ "error"
+ ],
"no-undefined": [
"off"
],