[BUG] Classes not detected inside objects with computed property (using clsx
callee)
#331
Labels
bug
Something isn't working
clsx
callee)
#331
Describe the bug
The plugin won't identify classes inside objects that have a computed property (
object[property]
orobject.property
), so doesn't check for any rules (classnames-order
in this case).To Reproduce
Expected behavior
The plugin should detect the classes and warn of the invalid order.
Screenshots
With the computed property (no linting):
Without property (linting works fine):
Environment (please complete the following information):
"eslint-plugin-tailwindcss": "3.15.1"
Current fix/ workaround:
I managed to fix this issue for the classnames-order rule, by updating the
callExpressionVisitor
function inside classnames-order.js:The text was updated successfully, but these errors were encountered: