Skip to content

[Prettier Plugin] Failes to sort classes in .svelte files? #8059

Answered by gihrig
gihrig asked this question in Help
Discussion options

You must be logged in to vote

The problem is not actually the .svelte extension. It's "custom classes" with variable expansion.

e.g. class="mx-auto mb-0 mt-[var(--column-margin-top)] max-w-[var(--column-width)]"

When the CSS variables are removed, class sort works as expected.

Also Confirmed with Headwind VSCode extension

I'll dig a bit deeper and open a new issue as appropriate

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by gihrig
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DaveKeehl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants