Replies: 2 comments 1 reply
-
|
Biome does remove the unnecessary whitespace: https://biomejs.dev/playground/?code=PABkAGkAdgAgAD4ASABlAGwAbABvACEAPAAvAGQAaQB2AD4A&language=html. Do you have a reproduction? It sounds like a bug. |
Beta Was this translation helpful? Give feedback.
0 replies
-
And neither do we, in fact it's documented as still experimental and that's why it's opt-in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Biome seems to apply itself to HTML files by default now, so I took another look at the formatter. I don't consider it ready to use yet, as it does not modify the following:
This kind of text can be left behind when e.g. removing the sole remaining attribute of an element:
Similar can happen when shuffling around attributes and changing newlines inside the tag (but not inside an attribute).
I would expect Biome to pick some sort of canonical choice to format tags like this (similar to, say,
js-beautify— the default HTML formatter that ships with into VS Code).Beta Was this translation helpful? Give feedback.
All reactions