aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 14:15:37 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 14:15:37 +0300
commita9bbe9301d01b99e33d490fbd46393c35685beda (patch)
tree3dba7d994f5fae785ace586eb5faa7e8d4f4b734
parent50dc1d4fecfc25925cc2301f3fe90b270b0c39a0 (diff)
downloadeslint-config-a9bbe9301d01b99e33d490fbd46393c35685beda.tar.xz
eslint-config-a9bbe9301d01b99e33d490fbd46393c35685beda.zip
feat(eslint): Rule "one-var"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json4
2 files changed, 5 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 1e33e5d..c6f9b22 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -226,7 +226,7 @@
- [ ] "object-curly-spacing"
- [ ] "object-property-newline"
- [ ] "object-shorthand"
-- [ ] "one-var"
+- [X] "one-var"
- [ ] "one-var-declaration-per-line"
- [ ] "operator-assignment"
- [ ] "operator-linebreak"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index 1a79eb6..0498880 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -60,6 +60,10 @@
"allowIndentationTabs": true
}
],
+ "one-var": [
+ "error",
+ "never"
+ ],
"prefer-reflect": [
"off"
],