We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Config:
{ "plugins": ["@shopify/prettier-plugin-liquid", "prettier-plugin-tailwindcss"] }
Input:
<div class="flex bg-green-500 px-2 gap-10 py-10 pb-14 -mx-10 {{ foo }}"></div> <div class="flex bg-green-500 px-2 gap-10 py-10 pb-14 -mx-10 {% render 'foo' %}"></div> <div class="flex bg-green-500 px-2 gap-10 py-10 pb-14 -mx-10 {% render 'foo', bar: true %}"></div> <div class="flex bg-green-500 px-2 gap-10 py-10 pb-14 -mx-10 {% include 'foo' %}"></div> <div class="flex bg-green-500 px-2 gap-10 py-10 pb-14 -mx-10 {% include 'foo', bar: true %}"></div>
Expected output:
<div class="-mx-10 flex gap-10 bg-green-500 px-2 py-10 pb-14 {{ foo }}"></div> <div class="-mx-10 flex gap-10 bg-green-500 px-2 py-10 pb-14 {% render 'foo' %}"></div> <div class="-mx-10 flex gap-10 bg-green-500 px-2 py-10 pb-14 {% render 'foo', bar: true %}"></div> <div class="-mx-10 flex gap-10 bg-green-500 px-2 py-10 pb-14 {% include 'foo' %}"></div> <div class="-mx-10 flex gap-10 bg-green-500 px-2 py-10 pb-14 {% include 'foo', bar: true %}"></div>
Actual output:
<div class="-mx-10 flex gap-10 bg-green-500 px-2 py-10 pb-14 {{ foo }}"></div> <div class="flex bg-green-500 px-2 gap-10 py-10 pb-14 -mx-10 {% render 'foo' %}"></div> <div class="flex bg-green-500 px-2 gap-10 py-10 pb-14 -mx-10 {% render 'foo', bar: true %}"></div> <div class="flex bg-green-500 px-2 gap-10 py-10 pb-14 -mx-10 {% include 'foo' %}"></div> <div class="flex bg-green-500 px-2 gap-10 py-10 pb-14 -mx-10 {% include 'foo', bar: true %}"></div>
The text was updated successfully, but these errors were encountered:
Hey, thanks for reporting this. I've merged a fix for this in #143 and will be in the next release (will be soon).
You can try it out before we do a release by using our insiders build: npm install prettier-plugin-tailwindcss@insiders
npm install prettier-plugin-tailwindcss@insiders
Sorry, something went wrong.
Thanks for the fast fixes. Very appreciated!
thecrypticace
Successfully merging a pull request may close this issue.
Config:
Input:
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: