Open redbmk opened 1 month ago
It seems like prettier is more legible in general. For something like box-shadow, biome splits based on line-length whereas prettier is splitting on the comma.
e.g.
.prettier {
box-shadow:
10px 10px 10px 10px rgb(10 18 30 / 12%),
10px 10px 10px 10px rgb(10 18 30 / 16%);
}
.biome {
box-shadow: 10px 10px 10px 10px rgb(10 18 30 / 12%), 10px 10px 10px 10px
rgb(10 18 30 / 16%);
}
Even in the case where it all fits on one line, I find it easier to read the multiline version like it works in prettier:
.prettier {
box-shadow:
0 2px 2px 0 rgb(10 18 30 / 12%),
0 0 2px 0 rgb(10 18 30 / 16%);
}
.biome {
box-shadow: 0 2px 2px 0 rgb(10 18 30 / 12%), 0 0 2px 0 rgb(10 18 30 / 16%);
}
I could try to solve this.
Environment information
Configuration
No response
Playground link
https://biomejs.dev/playground/?indentStyle=space&files.main.css=LgBjAGwAYQBzAHMAIAB7AAoAIAAgAGIAbwB4AC0AcwBoAGEAZABvAHcAOgAgAAoAIAAgACAAIAAwACAAMgBwAHgAIAAyAHAAeAAgADAAIAByAGcAYgAoADEAMAAgADEAOAAgADMAMAAgAC8AIAAxADIAJQApACwACgAgACAAIAAgADAAIAAwACAAMgBwAHgAIAAwACAAcgBnAGIAKAAxADAAIAAxADgAIAAzADAAIAAvACAAMQA2ACUAKQA7AAoAIAAgACAAIAAKACAAIAB0AHIAYQBuAHMAaQB0AGkAbwBuADoAIAB3AGkAZAB0AGgAIAAxAHMALAAgAGIAYQBjAGsAZwByAG8AdQBuAGQALQBjAG8AbABvAHIAIABnAHIAZQBlAG4AOwAKACAAIAAKACAAIABmAG8AbgB0AC0AZgBlAGEAdAB1AHIAZQAtAHMAZQB0AHQAaQBuAGcAcwA6ACAAIgBjAGwAaQBnACIAIABvAGYAZgAsACAAIgBsAGkAZwBhACIAIABvAGYAZgA7AAoAfQAKAAoALgBsAG8AbgBnAGUAcgAtAGIAbwB4AHMAaABhAGQAbwB3ACAAewAKACAAIABiAG8AeAAtAHMAaABhAGQAbwB3ADoAIAAKACAAIAAgACAAMQAwAHAAeAAgADEAMABwAHgAIAAxADAAcAB4ACAAMQAwAHAAeAAgAHIAZwBiACgAMQAwACAAMQA4ACAAMwAwACAALwAgADEAMgAlACkALAAKACAAIAAgACAAMQAwAHAAeAAgADEAMABwAHgAIAAxADAAcAB4ACAAMQAwAHAAeAAgAHIAZwBiACgAMQAwACAAMQA4ACAAMwAwACAALwAgADEANgAlACkAOwAKAH0A
Code of Conduct