aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 14:45:58 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 14:45:58 +0300
commite3ef269fefaff8b15ab81f04254fa033ebb0108f (patch)
treea7dc5e3f3ca6f447069421fe44fbc9492cb6de95
parent70f1b5ba2720df3b124fcb680537437abf9309ae (diff)
downloadeslint-config-e3ef269fefaff8b15ab81f04254fa033ebb0108f.tar.xz
eslint-config-e3ef269fefaff8b15ab81f04254fa033ebb0108f.zip
feat(eslint): Rule "semi-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 0976673..2ad0795 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -255,7 +255,7 @@
- [ ] "require-yield"
- [ ] "rest-spread-spacing"
- [X] "semi"
-- [ ] "semi-spacing"
+- [X] "semi-spacing"
- [ ] "semi-style"
- [X] "sort-imports"
- [X] "sort-keys"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index 718536c..43f6f90 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -106,6 +106,13 @@
"omitLastInOneLineBlock": false
}
],
+ "semi-spacing": [
+ "error",
+ {
+ "after": true,
+ "before": false
+ }
+ ],
"sort-imports": [
"error",
{