Replies: 1 comment 3 replies
-
This is planned, but requires #3334. As you are likely already aware, Biome doesn't fully support svelte yet. I personally recommend excluding svelte files from being formatted by biome for the time being. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, there is a mismatch between Prettier and Biome, as Prettier indents the
<script>
tag in Svelte:but Biome starts the indent from 0:
This can cause unnecessary modifications when switching from Prettier to Biome, which resets
git blame
to the formatting comment.What about adding an extra pass to the formatter, and using the same parser that's used to extract the script part to extract it from the markup again, and add an indentation to every line? (Edit: see my other comment below for an even simpler solution)
Beta Was this translation helpful? Give feedback.
All reactions