aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 15:40:40 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 15:40:40 +0300
commit3ed46834aa96d614526e69d5441550c21d149ded (patch)
treee4dda357c0cd0790deff2ee64e941e3e7967077b
parent799b6c9f21d1eab63d2ded3f7601695ce63e82ad (diff)
downloadeslint-config-3ed46834aa96d614526e69d5441550c21d149ded.tar.xz
eslint-config-3ed46834aa96d614526e69d5441550c21d149ded.zip
feat(eslint): Rule "arrow-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 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",