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

Plugin does not do anything #87

Closed
akomm opened this issue Nov 25, 2022 · 2 comments
Closed

Plugin does not do anything #87

akomm opened this issue Nov 25, 2022 · 2 comments
Labels
question Further information is requested

Comments

@akomm
Copy link

akomm commented Nov 25, 2022

I have the following packages installed:

{
    "prettier": "2.7.1",
    "prettier-plugin-organize-imports": "3.2.0",
    "prettier-plugin-tailwindcss": "0.1.13",
}

Prettier works. Tailwindcss plugin works. Organize import does nothing when I run prettier. Even when I configure it explicitly in prettier config. Typescript 4.9.3 installed.

@simonhaenisch
Copy link
Owner

Pretty sure those two plugins are incompatible cause they both overwrite built-in parsers (i.e. the last plugin wins). There's a pinned issue about this in the prettier-plugin-tailwindcss repo iirc.

@simonhaenisch simonhaenisch closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2022
@simonhaenisch simonhaenisch added the question Further information is requested label Nov 25, 2022
@rosszurowski
Copy link

For others running into this, the Tailwind folks released an update that is compatible with this plugin. It just requires a little bit of configuration to ensure prettier-plugin-tailwindcss is the final prettier plugin loaded. More details are here: tailwindlabs/prettier-plugin-tailwindcss#31 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants