support for clsx?
Geddard opened this issue · 0 comments
Geddard commented
Hey, thanks for this plugin :) Works great in most cases but it would be nice to support classes added with clsx
I have an example component like this:
<div
className={clsx(
`absolute z-10 flex h-max flex-col justify-center`,
{
'shadow-lg': type === 'card',
}
)}
>
...
</div>
);
The first argument for clsx would trigger a lint warning if it was added directly to className=""
but it doesn't work here.
I tried adding a config like for the tailwind config, like:
"unocss/classnames-order": [
1,
{
"callees": ["clsx"]
}
]
But it didn't have any effect