unstale

npm / eslint-plugin-tailwindcss

eslint-plugin-tailwindcss

What changed in eslint-plugin-tailwindcss 4, from its official release notes, upgrade guides and advisories. Also covers @types/eslint-plugin-tailwindcss. Sources checked 2026-10-19.

3 breaking2 new APIs and options1 performance2 behavior and defaults1 tooling5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.0 on npm

eslint-plugin-tailwindcss 414 changes

Breaking changes 3

  • Version 4 of eslint-plugin-tailwindcss is only compatible with the ESLint flat config format.

    4.0.3release notes

  • Version 4 of eslint-plugin-tailwindcss requires Node >= 20.19.0.

    4.0.3release notes

  • Version 4 of eslint-plugin-tailwindcss is only compatible with Tailwind CSS v4.x.x.

    4.0.3release notes

New APIs and options 2

  • Adds the enforces-canonical-classname rule, available only with Tailwind CSS v4.3.0 or above.

    4.4.0release notes

  • Adds a rule that ensures the ! important modifier is at the end of class names; its former position between modifiers and the class name is deprecated.

    4.2.0release notes

Performance 1

Behavior and default changes 2

  • Enhanced support for Svelte class attributes, directives, and expressions, including conditional classes and class values from props.

    4.3.0release notes

  • The rule now detects redundant arbitrary values by resolving unit conversions and spacing configurations, and suggests native Tailwind alternatives.

    4.1.0release notes

Tooling 1

  • Adds support for the satisfies operator in TypeScript.

    4.4.0release notes

Fixes and other changes 5

  • Adds import.meta.url to paths in TailwindUtils.

    4.4.0release notes

  • The fixers now respect optional ! important modifiers.

    4.1.0release notes

  • Fixes false positives involving border and divide classes in this rule.

    4.0.6release notes

  • Fixes the rule so it works when prefixed.

    4.0.5release notes

  • Adds the missing eslint peer dependency.

    4.0.5release notes