[Prettier Plugin] Allow wildcards for tailwindAttributes array #11838
reintroducing
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Also looking for this. Did you ever find a solution? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using tailwind in a React UI library where I expose different className properties to provide overwritable props on core components. For instance, a Table component may have the following props:
As you can see, when I create a new
<Table />
I would be passing noclassName
prop, rather (potentially) multiple different props that start withclassName[something]
. Is there a way to provide something like this in the config so that the classes passed to these props can be auto sorted? Something like the following would be great:tailwindAttributes: ['className*'],
but I don't know if this already exists and I'm just not using the proper syntax?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions