diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 15:42:49 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 15:42:49 +0300 |
commit | 2529229c18cc9ef46f77759d92bf54639339735d (patch) | |
tree | cc441f9c1792132dacfc6f78a8290807e6c52251 | |
parent | 3ed46834aa96d614526e69d5441550c21d149ded (diff) | |
download | eslint-config-2529229c18cc9ef46f77759d92bf54639339735d.tar.xz eslint-config-2529229c18cc9ef46f77759d92bf54639339735d.zip |
feat(eslint): Rule "keyword-spacing"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/eslint.json | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -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" |