Making the Intellisense work well with twMerge and twJoin #175
bradennapier
started this conversation in
Show and tell
Replies: 1 comment
-
Nice! I also use a similar config (only the last two items are specific to tailwind-merge): {
"tailwindCSS.experimental.classRegex": [
"\\/\\*\\s?tw:\\s?\\*\\/\\s?'(.*)'",
"tw-start([\\w\\W]*?)tw-end",
"[cC][lL][aA][sS][sS].+[\"'`](.*)[\"'`]",
"[sS][tT][yY][lL][eE].+[\"'`](.*)[\"'`]",
"twJoin\\([\\w\\W]*?\\)",
"twMerge\\([\\w\\W]*?\\)",
],
} |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am not sure if others have done similar but just figured I would point out since I am using this I put together a regex to properly use intellisense when using
twMerge
outside of aclassName=
context. Only thing that doesn't work is the prettier plugin.tailwindlabs/tailwindcss#7554 (comment)
lmk if anyone has a better method of doing this but it works well from what i can tell!
Beta Was this translation helpful? Give feedback.
All reactions