space-infix-ops
Deprecated
Formatting rules now live in eslint-stylistic. @stylistic/ts/space-infix-ops is the replacement for this rule. 
See Deprecating Formatting Rules for more information.
Require spacing around infix operators.
🔧
Some problems reported by this rule are automatically fixable by the --fix ESLint command line option.
This rule extends the base eslint/space-infix-ops rule.
It adds support for enum members.
enum MyEnum {
  KEY = 'value',
}
Options
See eslint/space-infix-ops options.
How to Use
.eslintrc.cjs
module.exports = {
  "rules": {
    // Note: you must disable the base rule as it can report incorrect errors
    "space-infix-ops": "off",
    "@typescript-eslint/space-infix-ops": "error"
  }
};
Try this rule in the playground ↗