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
What version of prettier-plugin-tailwindcss are you using?
v0.5.14
What version of Tailwind CSS are you using?
v3.4.3
What version of Node.js are you using?
v20.10.0
What package manager are you using?
npm
What operating system are you using?
macOS
Describe your issue
I have followed the README.md and tried to set up the project using the following config. Still, it's not working with either prettier-plugin-organize-imports, @ianvs/prettier-plugin-sort-imports, or @trivago/prettier-plugin-sort-imports.
Our plugin must always be listed last per the readme on plugin integration.
The importOrder* attributes are options that come from a different plugin (@trivago/prettier-plugin-sort-imports) so those will not do anything for prettier-plugin-organize-imports
I set up a small Vite project with Tailwind v3, prettier, and both plugins, and everything is sorting as expected.
Can you provide an example project where sorting doesn't work?
I created a new project to test the integration, which works fine with the configuration. Besides, I installed the sorting plugin and listed it last, then closed the VS project and restarted it. Everything works fine now.
What version of
prettier-plugin-tailwindcss
are you using?v0.5.14
What version of Tailwind CSS are you using?
v3.4.3
What version of Node.js are you using?
v20.10.0
What package manager are you using?
npm
What operating system are you using?
macOS
Describe your issue
I have followed the README.md and tried to set up the project using the following config. Still, it's not working with either
prettier-plugin-organize-imports
,@ianvs/prettier-plugin-sort-imports
, or@trivago/prettier-plugin-sort-imports
..prettierrc.json
However,
prettier-plugin-organize-imports
and the plugin works when the loading order is reversed.Notes:
importOrder
related attributes do not affect the below situation..prettierrc.json
I am using the VS Code format on save feature with esbenp.prettier-vscode to trigger the formatting.
The text was updated successfully, but these errors were encountered: