Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent formatting results when ran per file/per project #302

Closed
rChaoz opened this issue Jun 30, 2024 · 2 comments
Closed

Inconsistent formatting results when ran per file/per project #302

rChaoz opened this issue Jun 30, 2024 · 2 comments

Comments

@rChaoz
Copy link

rChaoz commented Jun 30, 2024

The problem

I'm using WebStorm with the "run prettier on save" option. Now, I'm not exactly sure how it runs prettier, but the result differs from running prettier --write <path>. More specifically, my custom variants are sorted first when saving the file, and sorted last when running the command manually. This is a problem because the CI fails when I use the IDE formatting, so I need to format on every commit manually.

It doesn't call the CLI script, so I'm guessing it calls the format API directly, and it ends up not loading the tailwind.config.ts file like it should, but this is just my guess.

Versions and stuff

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? 20.8.0

What package manager are you using? yarn 4.1.1

What operating system are you using? Windows

@gregberge
Copy link

Duplicate of #270

@thecrypticace
Copy link
Contributor

Closing in favor of #270 — if you can provide an example project that would be fantastic.

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

No branches or pull requests

3 participants