You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like prettier is unable to format code wrapped in expression blocks in Svelte / Kit. More specifically after doing some investigation - the {#await...} block.
I created an example repo with some expression blocks in the template to check.
Having an expression block like:
Hey, appreciate the report. We weren't traversing the await expressions in Svelte which is why these weren't sorted. I've merged the fix for this in #118. Will tag a release with this fix by EOD. Thanks! ✨
What version of
prettier-plugin-tailwindcss
are you using?v0.2.1
What version of Tailwind CSS are you using?
v3.2.4
What version of Node.js are you using?
v16.17.1
What package manager are you using?
pnpm
What operating system are you using?
macOS
Reproduction URL
https://github.com/ditoglez/sveltekit-prettier-tailwindcss
Describe your issue
Seems like prettier is unable to format code wrapped in expression blocks in Svelte / Kit. More specifically after doing some investigation - the
{#await...}
block.I created an example repo with some expression blocks in the template to check.
Having an expression block like:
and running
pnpm format
from the command line I would expect the classnames be formatted like:Seems like classes in other blocks
{#if}, {#each}
are sorted correctly.The text was updated successfully, but these errors were encountered: