2

I want this:

type SomeType = Variant1 | Variant2

to always format into this:

type SomeType =
  | Variant1 
  | Variant2

No matter whether it overflows the specified column width or not.

Daniel Birowsky Popeski
  • 8,752
  • 12
  • 60
  • 125

1 Answers1

0

If you need that degree of control over formatting you're likely not the target audience for Prettier because such things are intentionally not configurable in it. See Prettier's option philosophy. That said, you still can achieve what you want by creating a fork or a plugin.

thorn0
  • 9,362
  • 3
  • 68
  • 96