diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-16 20:04:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-17 01:04:56 +0000 |
commit | b249627434d3a94420ac4d98c3ce720767e57b43 (patch) | |
tree | ec46e2c020c5a63a5c2babf56376f53e288ed7f2 /.eslintrc.json | |
parent | decbc60f7734e739c0e5c41da294f65f9eec92fe (diff) |
Update eslint spacing rules (#366)
* Add space-infix-ops rule
* Add no-multi-spaces
---------
Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
Diffstat (limited to '.eslintrc.json')
-rw-r--r-- | .eslintrc.json | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index 8282d206..a93888bb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -192,6 +192,7 @@ } ], "no-implicit-globals": "error", + "no-multi-spaces": "error", "no-trailing-spaces": "error", "no-whitespace-before-property": "error", "object-curly-spacing": [ @@ -221,6 +222,12 @@ "error", "never" ], + "space-infix-ops": [ + "error", + { + "int32Hint": false + } + ], "space-unary-ops": "error", "spaced-comment": [ "error", @@ -515,7 +522,10 @@ "files": [ "*.json" ], - "parser": "jsonc-eslint-parser" + "parser": "jsonc-eslint-parser", + "rules": { + "no-multi-spaces": "off" + } }, { "files": [ |