summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 15:28:10 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 15:28:10 +0300
commit4fa76141e14459c930985686bd0fab9fc7c7346e (patch)
tree62b12f53aa08fcd41690e7318aaf8dc9cab2c059
parenteaa0627dae6ef868be9711576cbe4108fb9918f3 (diff)
downloadeslint-config-4fa76141e14459c930985686bd0fab9fc7c7346e.tar.xz
eslint-config-4fa76141e14459c930985686bd0fab9fc7c7346e.zip
feat(eslint): Rule "no-unused-vars"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json9
2 files changed, 10 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 58b7e78..71fdb86 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -205,7 +205,7 @@
- [ ] "no-unsafe-negation"
- [ ] "no-unused-expressions"
- [ ] "no-unused-labels"
-- [ ] "no-unused-vars"
+- [X] "no-unused-vars"
- [ ] "no-use-before-define"
- [ ] "no-useless-backreference"
- [ ] "no-useless-call"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index 3c57015..0ec8660 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -105,6 +105,15 @@
"allowIndentationTabs": true
}
],
+ "no-unused-vars": [
+ "error",
+ {
+ "args": "after-used",
+ "caughtErrors": "all",
+ "ignoreRestSiblings": false,
+ "vars": "all"
+ }
+ ],
"object-curly-newline": [
"error",
{