[space-infix-ops] prevent adding a space to union types #3590
Labels
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
question
Questions! (i.e. not a bug / enhancment / documentation)
How can I disable this rule from adding a space to my union types? There seems to be no config for it. Introduced here #3360
Repro
Expected Result
Code should be fine
Actual Result
Operator '|' must be spaced @typescript-eslint/space-infix-ops
Additional Info
How can I disable this rule from modifying my types? I want only space around
|
when it's not type definition.Versions
@typescript-eslint/eslint-plugin
4.28.0
@typescript-eslint/parser
4.28.0
TypeScript
4.3.4
ESLint
7.29.0
node
16
The text was updated successfully, but these errors were encountered: