eslint-plugin-tailwindcss icon indicating copy to clipboard operation
eslint-plugin-tailwindcss copied to clipboard

[Feature request] Support for Tailwind v.4.0.0

Open CasperKristiansson opened this issue 10 months ago • 20 comments

https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.0

CasperKristiansson avatar Jan 24 '25 07:01 CasperKristiansson

Add package.json supports tailwindcss@^4

luas10c avatar Jan 24 '25 11:01 luas10c

Duplicated with #325

kms0219kms avatar Jan 24 '25 12:01 kms0219kms

The same issue face Conflicting peer dependency: [email protected]

hossainpalin avatar Jan 26 '25 14:01 hossainpalin

same please update tailwind 4

tngflx avatar Jan 26 '25 20:01 tngflx

please update tailwind 4 ☆♡✧

theLeroy avatar Jan 28 '25 12:01 theLeroy

porfavor adaptar eslint con tailwind para poder que detecte las clases personalizadas de tailwind y con el archivo app.css porque en la version v4 ya no se usa el archivo tailwind.config.js

techotaku1 avatar Jan 31 '25 03:01 techotaku1

NPM installation conflict

SUXHK avatar Feb 04 '25 13:02 SUXHK

For those that cannot do with a sorter after upgrading to Tailwind v4, this the VS Code extension I am using until this plugin supports v4: https://marketplace.cursorapi.com/items?itemName=dejmedus.tailwind-sorter

ymansurozer avatar Feb 18 '25 06:02 ymansurozer

I am using the tailwin prettier plugin to organize my tailwind 4 classes

techotaku1 avatar Feb 18 '25 08:02 techotaku1

please update tailwind 4 ☆♡✧

wkylin avatar Feb 20 '25 06:02 wkylin

Please upgrade to Tailwind 4 🪁

alaajerbi avatar Mar 10 '25 15:03 alaajerbi

+1

burketyler avatar Mar 19 '25 21:03 burketyler

+1

erbilozum avatar Mar 25 '25 01:03 erbilozum

Can you guys please stop commenting "+1" or otherwise begging for this to be updated to Tailwind 4? I think we all got the point after the first few messages. This is an open-source project so nothing is stopping you from adding this functionality yourself and opening a PR. If you don't feel like doing the work yourself, then just wait patiently until somebody else does

AlanMorel avatar Mar 25 '25 19:03 AlanMorel

If you guys just want a notification on any updates about this topic, you should hit the subscribe button.

natsuki-engr avatar Mar 28 '25 09:03 natsuki-engr

I'm looking forward to getting this upgrade soon. eslint-plugin-tailwindcss is very useful, we need v4 support

cristiana214 avatar May 04 '25 17:05 cristiana214

Can you guys please stop commenting "+1" or otherwise begging for this to be updated to Tailwind 4? I think we all got the point after the first few messages. This is an open-source project so nothing is stopping you from adding this functionality yourself and opening a PR.

I can understand where this sentiment is coming from, But we already got 2 open pull requests now to merge v4 support. Don't think we need any more of those, They were submitted about 5-6 months ago.

I would really like to see an update from the maintainer(s) on if and when they are able to look into reviewing and potentially merging one of them. And if not then if there is anything we can do as a community to assist in this matter.

Obviously we cannot merge these pull requests ourselves, and there is no guarantee that any future pull requests we submit won't end up in the same situation.

Just getting some sort of timeline on this would be helpful as we can make some plans around that.

IceBlizz6 avatar May 04 '25 17:05 IceBlizz6

+1

coderrshyam avatar May 05 '25 11:05 coderrshyam

I am currently trying to support Tailwind v4 in my forked repository (it also supports v3). You are welcome to try and give feedback.

  • https://github.com/hyoban/eslint-plugin-tailwindcss/pull/3

hyoban avatar May 06 '25 01:05 hyoban

any update? its been many months?

mad-coder-365 avatar Jun 09 '25 04:06 mad-coder-365

Since there hasn't been a reply from the maintainer in all these months; is this project considered dead? Or at least in need of extra maintainers..

rvanbaalen avatar Jun 24 '25 15:06 rvanbaalen

Maybe you guys could see this alternative https://github.com/schoero/eslint-plugin-better-tailwindcss

mamlzy avatar Jun 24 '25 15:06 mamlzy

Unfortunately that package doesn't seem to offer most of the rules I want to enforce, namely no-arbitrary-value, enforces-shorthand, and no-contradicting-classname.

simon-abbott avatar Jun 24 '25 16:06 simon-abbott

Since there hasn't been a reply from the maintainer in all these months; is this project considered dead? Or at least in need of extra maintainers..

The maintainer is working on v4 support as stated here: https://github.com/hyoban/eslint-plugin-tailwindcss/pull/3

codeflorist avatar Jun 24 '25 18:06 codeflorist

I'm really confused as to how to use v4 of this plugin. Even if I explicitly set the config, it errors with

Error: Could not resolve tailwindcss
    at TailwindUtils.loadConfigV4 (/home/kendell/Documents/Projects/RatRater2/node_modules/.pnpm/[email protected][email protected]/node_modules/tailwind-api-utils/dist/index.cjs:391:13)
    at TailwindUtils.loadConfig (/home/kendell/Documents/Projects/RatRater2/node_modules/.pnpm/[email protected][email protected]/node_modules/tailwind-api-utils/dist/index.cjs:381:18)
    at /home/kendell/Documents/Projects/RatRater2/node_modules/.pnpm/[email protected][email protected]/node_modules/eslint-plugin-tailwindcss/lib/util/getTailwindConfigWorker.js:7:25
    at /home/kendell/Documents/Projects/RatRater2/node_modules/.pnpm/[email protected]/node_modules/synckit/lib/index.cjs:517:20
    at MessagePort.<anonymous> (/home/kendell/Documents/Projects/RatRater2/node_modules/.pnpm/[email protected]/node_modules/synckit/lib/index.cjs:539:5)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)

which makes no sense (I have tailwindcss installed in this project).

KTibow avatar Aug 17 '25 19:08 KTibow