devunt / devunt/eslint-plugin-unocss
support for clsx?
- Dominant language
- TypeScript
- Stars
- 84
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
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:
```
...
);
```
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
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are named in the issue. Start by locating the className handling and the existing tailwind-config callees option, then reproduce the provided clsx example. Done means classes in clsx calls are checked and the shown configuration enables that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100