summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 20:17:28 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 20:17:28 +0300
commit7adf510a945db5459c57a9586f3a01c72a8465ba (patch)
tree15286d671d7463ff9b99868b0ba2ddba15890135
parenta2f1c52972053d0a1ab0f7bdae87010fb2c465c9 (diff)
downloadeslint-config-7adf510a945db5459c57a9586f3a01c72a8465ba.tar.xz
eslint-config-7adf510a945db5459c57a9586f3a01c72a8465ba.zip
feat(eslint): space-infix-ops
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/javascript/default.json6
2 files changed, 7 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index bf996be..8860109 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -263,7 +263,7 @@
- [X] "space-before-blocks"
- [X] "space-before-function-paren"
- [ ] "space-in-parens"
-- [ ] "space-infix-ops"
+- [X] "space-infix-ops"
- [ ] "space-unary-ops"
- [ ] "spaced-comment"
- [X] "strict"
diff --git a/src/rules/javascript/default.json b/src/rules/javascript/default.json
index 7c973a3..6f6f67a 100644
--- a/src/rules/javascript/default.json
+++ b/src/rules/javascript/default.json
@@ -604,6 +604,12 @@
"named": "never"
}
],
+ "space-infix-ops": [
+ "error",
+ {
+ "int32Hint": false
+ }
+ ],
"strict": [
"error",
"safe"