JS.TS.SPACE.INFIX.OPS
This rule is aimed at ensuring there are spaces around infix operators.
This rule extends the base eslint/space-infix-ops
(https://eslint.org/docs/rules/space-infix-ops) rule.
It also add support for enum members
Copy
enum MyEnum {
KEY = 'value',
}
How to Use
Copy
{
"space-infix-ops": "off",
"@typescript-eslint/space-infix-ops": ["error", { "int32Hint": false }]
}
Options
See eslint/space-infix-ops
options (https://eslint.org/docs/rules/space-infix-ops#options).