summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:18:05 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:18:05 +0300
commit81d3e2381071b3123d9c4cc4992b953407c1b131 (patch)
tree30f8547abd89908dcdf64779bc9cace565fccb1c
parent46abf32d58915ba5da1374ac1f0a114174db41d0 (diff)
downloadeslint-config-81d3e2381071b3123d9c4cc4992b953407c1b131.tar.xz
eslint-config-81d3e2381071b3123d9c4cc4992b953407c1b131.zip
feat(eslint): Rule "no-var"
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 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",
{