Skip to content

Add @ianvs/prettier-plugin-sort-imports to html transform compat list#465

Open
zivenger wants to merge 1 commit into
tailwindlabs:mainfrom
zivenger:main
Open

Add @ianvs/prettier-plugin-sort-imports to html transform compat list#465
zivenger wants to merge 1 commit into
tailwindlabs:mainfrom
zivenger:main

Conversation

@zivenger

@zivenger zivenger commented Jul 7, 2026

Copy link
Copy Markdown

When using this plugin together with @ianvs/prettier-plugin-sort-imports, the two plugins conflict on .vue files depending on their order in the Prettier config.

Following tailwindlabs/prettier-plugin-tailwindcss's recommended placement (placing it last), the sort-imports plugin won't take effect on .vue files. Reversing the order causes this plugin to stop working instead.

The root cause is that the vue parser lives under the html transform, whose compatible list only includes prettier-plugin-organize-attributes — missing @ianvs/prettier-plugin-sort-imports. The js transform already has it, which is why .ts files work fine.

This PR adds @ianvs/prettier-plugin-sort-imports to the html transform's compatible list, resolving the compatibility issue for .vue files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant