Closed coltonhurst closed 6 months ago
Hi @coltonhurst
I think it was due to the fact that I was always expecting to get a value from theme.size
which may not exists depending on your version of Tailwind CSS... Your old MR code is not available however, I did:
npm run lint
✅ npm i eslint-plugin-tailwindcss@3.15.0
npm run lint
✅ Maybe it was fixed by the update of Tailwind CSS but I'll patch v3.15.1
to address the issue.
I would be curious to investigate more on this. Do you still have your old PR somewhere.
If you still get the runtime error try this patched version
npm i eslint-plugin-tailwindcss@3.15.1-beta.0
Hi @francoismassart
The same type of issue is for tailwindcss/no-unnecessary-arbitrary-value"
rule for patched version "eslint-plugin-tailwindcss@3.15.1-beta.0"
index.tsx:41
- <span className="!absolute !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]">Loading...</span>
+ <span className="!absolute !whitespace-nowrap !border-0 !p-0 [clip:rect(0,0,0,0)]">Loading...</span>
Once removed !
for ![clip:rect(0,0,0,0)]
value - it does not cause an error
Thanks for the infos, I'll take a look at it
@coltonhurst please try with
npm i eslint-plugin-tailwindcss@3.15.1-beta.1
fixed in eslint-plugin-tailwindcss@3.15.1
@coltonhurst please re-open the issue if eslint-plugin-tailwindcss@3.15.1
does not fix your issue
@francoismassart apologies for the late reply. Thank you so much! This is fixed, I've tested 3.15.1
on this PR. Thank you for the support!
Describe the bug
Hello! Thank you for all of the great work on this plugin.
When running
npm run lint
on version3.14.2
, I receive the following TypeError:This was discovered and is visible through this PR.
To Reproduce Steps to reproduce the behavior:
npm install
npm ci
npm run lint
package.json
we havelint
defined as so:"lint": "eslint . --cache --cache-strategy content && prettier --check .",
Expected behavior
That
npm run lint
runs successfully.Screenshots
Environment (please complete the following information):
14.3.1
1.86.1
v18.16.0
Thank you!