diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 14:15:37 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 14:15:37 +0300 |
commit | a9bbe9301d01b99e33d490fbd46393c35685beda (patch) | |
tree | 3dba7d994f5fae785ace586eb5faa7e8d4f4b734 | |
parent | 50dc1d4fecfc25925cc2301f3fe90b270b0c39a0 (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/eslint.json | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -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" ], |