tailwindlabs/prettier-plugin-tailwindcss

Inconsistent sorting of classes

branoben opened this issue · 1 comments

What version of prettier-plugin-tailwindcss are you using?

v0.5.14

What version of Tailwind CSS are you using?

v3.4.1

What version of Node.js are you using?

v20.12.2

What package manager are you using?

pnpm

What operating system are you using?

macOS

Reproduction URL

https://github.com/branoben/prettier-tailwind-inconsistent-sorting

Describe your issue

Running the Prettier --write command produces different result when specifying a file vs running Prettier on all files.
Therefore, within the example repository, when running pnpm prettier --check ., there's a formatting error on test.html, but when running pnpm prettier --check "test.html" there are no errors.

Seems like this has been solved in the newest version of Tailwind :) Closing the issue.