Closed YayC closed 1 week ago
I created a PR with a basic fix. Let me know if it looks ok, it definitely needs to be tested more as I haven't written eslint rules before. My quick test for className={clsx(`foo`)}
worked
I merged the PR, but for some reason now ESLint fails on build.
I won't have access to a computer for a couple of weeks. In case you need this feature now you can make another PR with ESLint issue fix and package.json minor version increment. After we merge that - release PR should be created automatically.
thanks for merging that in! sounds good, I can try to take a closer look later this week or next
@YayC v0.0.4 with fix is released on npm
It would be cool to generate v0.0.4 entry into CHANGELOG.md with changesets cli https://github.com/changesets/changesets/blob/main/packages/cli/README.md. You can make a PR if you are interested, otherwise I will be able to do it in a week or so.
Added 0.0.4 to CHANGELOG.md
The
no-redundant-clsx
rule fails to reportclassName=clsx(`foo`)
. It is correctly detected after changing it toclassName=clsx('foo')
.I think backtick strings also break other rules, but I haven't tested extensively.