From 2529229c18cc9ef46f77759d92bf54639339735d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 16:42:49 +0400 Subject: feat(eslint): Rule "keyword-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 33aeed3..1ddf364 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -55,7 +55,7 @@ - [ ] "init-declarations" - [ ] "jsx-quotes" - [X] "key-spacing" -- [ ] "keyword-spacing" +- [X] "keyword-spacing" - [ ] "line-comment-position" - [X] "linebreak-style" - [ ] "lines-around-comment" diff --git a/src/rules/eslint.json b/src/rules/eslint.json index cb5c18b..caa810f 100644 --- a/src/rules/eslint.json +++ b/src/rules/eslint.json @@ -67,6 +67,13 @@ "mode": "strict" } ], + "keyword-spacing": [ + "error", + { + "after": true, + "before": true + } + ], "linebreak-style": [ "error", "unix" -- cgit v1.2.3