From 4fa76141e14459c930985686bd0fab9fc7c7346e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 16:28:10 +0400 Subject: feat(eslint): Rule "no-unused-vars" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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", { -- cgit v1.2.3