Urara-Blog/node_modules/.pnpm-store/v3/files/09/0aeeed9e9c9d8aba980aa122f57933fa229b6ebb035b837c696baaf508e4a736cfabd53776d7edc4f1e8592f54b1974f338f96331594225c6a9368514bd347
2022-08-14 01:14:53 +08:00

36 lines
784 B
Text

---
description: 'Require spacing around infix operators.'
---
> 🛑 This file is source code, not the primary documentation location! 🛑
>
> See **https://typescript-eslint.io/rules/space-infix-ops** for documentation.
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
```ts
enum MyEnum {
KEY = 'value',
}
```
## How to Use
```jsonc
{
"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).
<sup>
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/space-infix-ops.md)
</sup>