Skip to main content

space-infix-ops

Require spacing around infix operators.

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

It also add support for enum members

enum MyEnum {
KEY = 'value',
}

Attributes

  • Included in configs
    • ✅ Recommended
    • 🔒 Strict
  • Fixable
    • 🔧 Automated Fixer
    • 🛠 Suggestion Fixer
  • 💭 Requires type information

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