From 81d3e2381071b3123d9c4cc4992b953407c1b131 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:18:05 +0400 Subject: feat(eslint): Rule "no-var" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index be063ab..b58a7f4 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -216,7 +216,7 @@ - [ ] "no-useless-escape" - [ ] "no-useless-rename" - [ ] "no-useless-return" -- [ ] "no-var" +- [X] "no-var" - [ ] "no-void" - [ ] "no-warning-comments" - [ ] "no-whitespace-before-property" diff --git a/src/rules/default.json b/src/rules/default.json index 905aa50..225e061 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -362,6 +362,9 @@ "vars": "all" } ], + "no-var": [ + "error" + ], "object-curly-newline": [ "error", { -- cgit v1.2.3