switch "" {
| "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" => {a: 1, b: 2, c: 3}
}
formats to:
switch "" {
| "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" => {
a: 1,
b: 2,
c: 3,
}
}
but this would likely be better:
switch "" {
| "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" =>
{a: 1, b: 2, c: 3}
}
the formatter won't let you do that, but splits it to multiplie lines again. workaround i use is to add a comment:
switch "" {
| "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" => //
{a: 1, b: 2, c: 3}
}
minor, but it's still an annoyance