Closed lts20050703 closed 2 months ago
Similarly
{#snippet foo({ onselect }: { onselect: (value: string) => void})}
<p>...</p>
{/snippet}
Gets formatted to
{#snippet foo({ onselect }: { onselect: (value: string)}
<p>...</p>
{/snippet}
I am facing this problem with this snippet:
{#snippet variableIcon(type: (typeof variableTypes)[number])}
...
{/snippet}
It gets formatted as {#snippet variableIcon(type: (typeof variableTypes)}
Changing to this fixed it:
<script>
...
type IconTypes = (typeof variableTypes)[number];
</script>
{#snippet variableIcon(type: IconTypes)}
...
{/snippet}
Apologies for the delay, this was fixed a while ago but only published just now.
Describe the bug
prettier-plugin-svelte delete part of snippet types, resulting in broken code
Reproduction
will first format to
then finally format to this broken svelte code
System Info
Severity
annoyance