Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 652 Bytes

space-infix-ops.md

File metadata and controls

26 lines (18 loc) · 652 Bytes

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