Skip to main content

This rule is aimed at ensuring there are spaces around infix operators. (space-infix-ops)

This rule extends the base eslint/space-infix-ops rule.

It also add support for enum members

enum MyEnum {
KEY = 'value',
}

How to use

{
"space-infix-ops": "off",
"@typescript-eslint/space-infix-ops": ["error", { "int32Hint": false }]
}

Options

See eslint/space-infix-ops options.

Taken with โค๏ธ [from ESLint core](https://github.com/eslint/eslint/blob/master/docs/rules/space-infix-ops.md)

Attributes

  • โœ… Recommended
  • ๐Ÿ”ง Fixable
  • ๐Ÿ’ญ Requires type information