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
Describe the bug
I have just updated eslint-plugin-tailwindcss from 3.14.3 to 3.15.0 and when running eslint from the command-line I am seeing the following error in one of my React components:
eslint . --report-unused-disable-directives --max-warnings 0
Oops! Something went wrong! :(
ESLint: 8.57.0
TypeError: Cannot convert undefined or null to object
Occurred while linting /Users/<me>/Projects/<project>/src/components/select.tsx:19
Rule: "tailwindcss/no-unnecessary-arbitrary-value"
at Function.keys (<anonymous>)
at /Users/<me>/Projects/<project>/node_modules/eslint-plugin-tailwindcss/lib/rules/no-unnecessary-arbitrary-value.js:197:44
at Array.forEach (<anonymous>)
at parseForArbitraryValues (/Users/<me>/Projects/<project>/node_modules/eslint-plugin-tailwindcss/lib/rules/no-unnecessary-arbitrary-value.js:182:27)
at /Users/<me>/Projects/<project>/node_modules/eslint-plugin-tailwindcss/lib/rules/no-unnecessary-arbitrary-value.js:311:9
at Array.forEach (<anonymous>)
at callExpressionVisitor (/Users/<me>/Projects/<project>/node_modules/eslint-plugin-tailwindcss/lib/rules/no-unnecessary-arbitrary-value.js:310:22)
at ruleErrorHandler (/Users/<me>/Projects/<project>/node_modules/eslint/lib/linter/linter.js:1076:28)
at /Users/<me>/Projects/<project>/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
To Reproduce
Here is the code that causes this issue (select.tsx)
Describe the bug
I have just updated
eslint-plugin-tailwindcss
from3.14.3
to3.15.0
and when runningeslint
from the command-line I am seeing the following error in one of my React components:To Reproduce
Here is the code that causes this issue (
select.tsx
)If I uncomment the following then the crash does not occur:
Environment (please complete the following information):
eslint config file or live demo
The text was updated successfully, but these errors were encountered: