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

Conflict with prettier-plugin-tailwindcss #105

Closed
bnzo opened this issue Jun 4, 2024 · 2 comments
Closed

Conflict with prettier-plugin-tailwindcss #105

bnzo opened this issue Jun 4, 2024 · 2 comments

Comments

@bnzo
Copy link

bnzo commented Jun 4, 2024

Since the recent release of prettier-plugin-blade there is a conflict with prettier-plugin-blade

Original issue here: tailwindlabs/prettier-plugin-tailwindcss#282

@JohnathonKoster
Copy link
Contributor

Thanks for the report! I've released 2.1.16 that adds x-mask to an internal list to prevent it from being formatted by a feature that attempts to format certain strings as HTML class lists.

This feature can be entirely disabled by adding the following to a .blade.format.json file:

{
    "classStrings": {
        "enabled": false
    }
}

More information about that feature and configuration can be found here: https://stillat.com/blade-parser/v1/formatting-configuration#content-class-string-emulation

I'll continue to think about excluding other attributes, but will close this for now. If you find additional items just let me know!

@bnzo
Copy link
Author

bnzo commented Jun 4, 2024

Thanks for the quick update @JohnathonKoster, package updated and x-mask is ignored 👍
I do not see any other directives for now, I will let you know if I found some.

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

2 participants