You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use >= eslint-plugin-taildwindcss@3.11.0, I get this error:
$ eslint src --ext .ts,.tsx --max-warnings 0
Oops! Something went wrong! :(
ESLint: 8.41.0
TypeError: Cannot read properties of undefined (reading 'type')
Occurred while linting XXX:133
Rule: "tailwindcss/no-custom-classname"
at XXX/node_modules/eslint-plugin-tailwindcss/lib/util/ast.js:292:24
at Array.forEach (<anonymous>)
at Object.parseNodeRecursive (XXX/node_modules/eslint-plugin-tailwindcss/lib/util/ast.js:289:30)
at attributeVisitor (XXX/node_modules/eslint-plugin-tailwindcss/lib/rules/no-custom-classname.js:163:17)
at ruleErrorHandler (XXX/node_modules/eslint/lib/linter/lint..er.js:1050:28)
at XXX/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (XXX/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (XXX/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (XXX/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
But when I install eslint-plugin-tailwindcss@~3.10.0, it succeeds without any issues.
A clear and concise description of what the bug is.
To Reproduce
I don’t have a minimal reproduction. Is there some playground or starter that I can use to try to put one together?
Steps to reproduce the behavior:
Install >3.11.0
Run lint with no-custom-classname
See error
Expected behavior
Success.
Environment (please complete the following information):
Describe the bug
When I use >=
eslint-plugin-taildwindcss@3.11.0
, I get this error:But when I install
eslint-plugin-tailwindcss@~3.10.0
, it succeeds without any issues.A clear and concise description of what the bug is.
To Reproduce
I don’t have a minimal reproduction. Is there some playground or starter that I can use to try to put one together?
Steps to reproduce the behavior:
no-custom-classname
Expected behavior
Success.
Environment (please complete the following information):
eslint config file or live demo
The text was updated successfully, but these errors were encountered: