From 3ed46834aa96d614526e69d5441550c21d149ded Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 16:40:40 +0400 Subject: feat(eslint): Rule "arrow-spacing" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 01af735..33aeed3 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -9,7 +9,7 @@ - [ ] "array-element-newline" - [ ] "arrow-body-style" - [X] "arrow-parens" -- [ ] "arrow-spacing" +- [X] "arrow-spacing" - [ ] "block-scoped-var" - [ ] "block-spacing" - [X] "brace-style" diff --git a/src/rules/eslint.json b/src/rules/eslint.json index 7793435..cb5c18b 100644 --- a/src/rules/eslint.json +++ b/src/rules/eslint.json @@ -3,6 +3,13 @@ "error", "always" ], + "arrow-spacing": [ + "error", + { + "after": true, + "before": true + } + ], "brace-style": [ "error", "1tbs", -- cgit v1.2.3