-
Notifications
You must be signed in to change notification settings - Fork 146
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
Removal of duplicate classes impacts AlpineJS x-mask directive #282
Comments
What does your prettier config look like? This should only happen to attributes that are considered class attributes. |
I've confirmed that this doesn't happen in a barebones project with alpine, prettier, and our plugin. Most likely you have something like this in your Prettier config:
You'll want to remove that and it'll start working. 👍 |
@thecrypticace thanks, I should have check the entire config... {
"plugins": [
"prettier-plugin-blade",
"prettier-plugin-tailwindcss"
]
} There is a conflict with this other plugin https://github.com/stillat/blade-parser-typescript |
Ah yeah that sounds like a bug in |
What version of
prettier-plugin-tailwindcss
are you using?v0.6.1
What version of Tailwind CSS are you using?
v3.4.3
What version of Node.js are you using?
v21.7.3
What package manager are you using?
npm
What operating system are you using?
macOS
Describe your issue
Using Alpine.js and its
x-mask
directive with a repetitive pattern:Will result into:
I guess removal of duplicate classes should only impact
class
orclassName
attributesWorkaround
Set the new
tailwindPreserveDuplicates
option to disable removal of duplicate classes totrue
(#276)The text was updated successfully, but these errors were encountered: