generated from ony3000/node-library-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
I am using cn (clsw, twMerge) - this means I have class lists inside plain string variables.
Would be nice we could target the formatting for certain string variables:
const buttonClassName = 'flex h-8 w-8 items-center justify-center rounded-l-lg border-1 border-black';
return( <button className={cn(buttonClassName, 'extraClass')}>Button</button> );
In my VSCode I set up intellisense to recognize "*ClassName" variables, so "buttonClassName" gets the intellisense. Maybe the prettier config could also target variables with "*ClassName" patterns, or whatever the user chooses.
franpeza and MarkA772ony3000
Metadata
Metadata
Assignees
Labels
Projects
Status
Todo