From a9bbe9301d01b99e33d490fbd46393c35685beda Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 15:15:37 +0400 Subject: feat(eslint): Rule "one-var" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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" ], -- cgit v1.2.3