aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 15:42:49 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 15:42:49 +0300
commit2529229c18cc9ef46f77759d92bf54639339735d (patch)
treecc441f9c1792132dacfc6f78a8290807e6c52251
parent3ed46834aa96d614526e69d5441550c21d149ded (diff)
downloadeslint-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.md2
-rw-r--r--src/rules/eslint.json7
2 files changed, 8 insertions, 1 deletions
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"