unstale

npm / eslint-plugin-better-tailwindcss

eslint-plugin-better-tailwindcss

What changed in eslint-plugin-better-tailwindcss 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-26.

14 breaking1 deprecations27 new APIs and options1 performance10 behavior and defaults3 tooling34 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

eslint-plugin-better-tailwindcss 485 changes

Breaking changes 14

  • Strict sorting order is now based on the official sorting order.

    4.7.0release notes

  • Automatic project-root detection to set cwd was removed; monorepo users may need to configure cwd manually.

    4.4.1release notes

  • Rule options now disallow extra properties in valibot schemas.

    4.0.1release notes

  • The rule's options have been renamed to shorthand and variable.

    4.0.0release notes

  • The separate CommonJS build has been removed.

    4.0.0release notes

  • The improved sorting order was renamed to strict and is no longer the default; strict groups shared base variants, orders fewer variants first, and places arbitrary variants last.

    4.0.0release notes

  • The default is now always recommended; Tailwind CSS v3 users must set it to legacy to keep it working.

    4.0.0release notes

  • Variant grouping is stricter: all variants are ordered correctly rather than grouping only by the first variant.

    4.0.0release notes

  • The function has been removed.

    4.0.0release notes

  • The minimum supported Node.js versions are now v23.0.0, v22.12.0, and v20.19.0 to support require(esm).

    4.0.0release notes

  • Renamed to enforce-consistent-line-wrapping.

    4.0.0release notes

  • Renamed to no-unknown-classes.

    4.0.0release notes

  • Rule regex matchers have been removed.

    4.0.0release notes

  • Renamed to enforce-consistent-class-order.

    4.0.0release notes

Deprecations 1

  • Matcher config changes from a nested tuple structure to an array of objects; the old structure remains supported for now but will be removed in the next major version.

    4.3.0release notes

New APIs and options 27

  • Adds HTML templating support.

    4.10.0release notes

  • The settings type is exported from the public API, allowing developers to use it in their code.

    4.9.0release notes

  • Adds the vueConvertToBinding option.

    4.7.0release notes

  • Adds a rule to detect concatenated classes.

    4.7.0release notes

  • Adds an ignore option to the enforce-logical-properties rule.

    4.6.0release notes

  • Adds an ignore option to enforce-canonical-classes.

    4.5.0release notes

  • Adds a tabWidth option to enforce-consistent-line-wrapping.

    4.5.0release notes

  • A matcher for anonymous functions is available.

    4.4.0release notes

  • A new rule enforces consistent variant order.

    4.4.0release notes

  • A new rule enforces logical properties.

    4.4.0release notes

  • A React twc preset is available.

    4.4.0release notes

  • The worker uses the SYNCKIT_TIMEOUT environment variable for timeout configuration.

    4.4.0release notes

  • Tag paths are supported.

    4.4.0release notes

  • Matchers can target specific arguments of callees.

    4.4.0release notes

  • A Solid classList matcher is added.

    4.1.0release notes

  • Experimental CSS linting is added.

    4.1.0release notes

  • Adds support for bound attribute classes in Angular.

    4.0.0release notes

  • Adds a rule for enforcing canonical classes.

    4.0.0release notes

  • Adds control over the sort order of component classes.

    4.0.0release notes

  • Adds control over whether component classes appear at the start or end.

    4.0.0release notes

  • Adds an option to sort component classes.

    4.0.0release notes

  • Adds control over the sort order of unknown classes.

    4.0.0release notes

  • Adds control over whether unknown classes appear at the start or end.

    4.0.0release notes

  • Adds a loose strictness option to improve interoperability with prettier.

    4.0.0release notes

  • The renamed configs now expose recommended and related warning, error, stylistic, correctness, and legacy variants.

    4.0.0release notes

  • Adds a settings option to configure messageStyle.

    4.0.0release notes

  • Adds support for the Svelte class directive.

    4.0.0release notes

Performance 1

Behavior and default changes 10

Tooling 3

Fixes and other changes 29

eslint-plugin-better-tailwindcss 35 changes

Fixes and other changes 5

  • Supports @import layer(components) in the no-unregistered-classes rule.

    3.8.0release notes

  • Shows the config warning only when a config is set and not found.

    3.7.11release notes

  • Allows interpolations in normal Svelte string literals.

    3.7.11release notes

  • Ignores literals in binary expressions.

    3.7.11release notes

  • Fixes conversion of missing flex shrink and grow utilities.

    3.7.11release notes