Skip to content

⬆️ Bump eslint-plugin-tailwindcss from 3.18.3 to 4.2.0 - #12

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/eslint-plugin-tailwindcss-4.2.0
Open

⬆️ Bump eslint-plugin-tailwindcss from 3.18.3 to 4.2.0#12
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/eslint-plugin-tailwindcss-4.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 2, 2026

Copy link
Copy Markdown

Bumps eslint-plugin-tailwindcss from 3.18.3 to 4.2.0.

Release notes

Sourced from eslint-plugin-tailwindcss's releases.

v4.2.0

🚀 Features

New rule important-modifier-suffix: Makes sure the ! important modifier is at the end of the class names. The former ! location (between the modifiers and the class name is deprecated).

v4.1.0

v4.1.0

🚀 Features

no-unnecessary-arbitrary-value: Expanded checks to catch and replace redundant arbitrary values (resolves #366).

💡 What's new: Prior to v4.1.0, this rule only flagged exact string matches between an arbitrary value and a preset. The rule is now smart enough to resolve unit conversions and spacing configurations.

The plugin will now suggest cleaner native alternatives for:

  • Native presets: Replaces inset-[1px] with inset-px (previously ignored because px preset is not declared in the config, yet it exists).
  • Unitless values: Replaces z-[123] with z-123.
  • Spacing-based values: Replaces m-[8px] with m-2 by intelligently parsing your Tailwind v4's configuration (--spacing: 0.25rem; /* 4px */).

🐞 Fixes

  • fix: respect the optional ! important modifiers in the fixers

v4.0.6

  • fix: false positives with border and divide by no-contradicting-classname rule #461

v4.0.5

  • fix: missing eslint as peer dependency #463
  • fix: enforces-shorthand did not work when prefixed #462

v4.0.4

Tailwind CSS v4

Made for Tailwind CSS v4

Version 4 of the eslint-plugin-tailwindcss is:

... (truncated)

Changelog

Sourced from eslint-plugin-tailwindcss's changelog.

v4.2.0

🚀 Features

New rule important-modifier-suffix: Makes sure the ! important modifier is at the end of the class names. The former ! location (between the modifiers and the class name is deprecated).

v4.1.0

🚀 Features

no-unnecessary-arbitrary-value: Expanded checks to catch and replace redundant arbitrary values (resolves #366).

💡 What's new: Prior to v4.1.0, this rule only flagged exact string matches between an arbitrary value and a preset. The rule is now smart enough to resolve unit conversions and spacing configurations.

The plugin will now suggest cleaner native alternatives for:

  • Native presets: Replaces inset-[1px] with inset-px (previously ignored because px preset is not declared in the config, yet it exists).
  • Unitless values: Replaces z-[123] with z-123.
  • Spacing-based values: Replaces m-[8px] with m-2 by intelligently parsing your Tailwind v4's configuration (--spacing: 0.25rem; /* 4px */).

🐞 Fixes

  • fix: respect the optional ! important modifiers in the fixers

4.0.6

  • fix: false positives with border and divide by no-contradicting-classname rule #461

4.0.5

  • fix: missing eslint as peer dependency #463
  • fix: enforces-shorthand did not work when prefixed #462

4.0.4

4.0.0

Made for Tailwind CSS v4

Version 4 of the eslint-plugin-tailwindcss is:

... (truncated)

Upgrade guide

Sourced from eslint-plugin-tailwindcss's upgrade guide.

Upgrade guide

eslint-plugin-tailwindcss from v3 to v4

Version 4 of the eslint-plugin-tailwindcss was rewritten entirely in TypeScript and it is exclusively compatible with Tailwind CSS v4.

If you are using Tailwind CSS v4, you should use the v4 of the plugin.

Changes from v3

Requirements

Your project must:

  • use Tailwind CSS v4
  • use node v20.19.0 or higher

Shared settings

In v3, you were able to use different settings for different rules.

In v4, most of the settings can only be defined within the shared settings.

You can read more about the available options of each rule in the docs. (e.g. no-unnecessary-arbitrary-value which has no dedicated options or no-custom-classname which uses a specific option)

The most important setting is the cssConfigPath which expects a path pointing to the main CSS file used by Tailwind CSS. If the provided path is absolute, it is used as is. If the path is relative the plugin will attempt to convert it into an absolute path.

Modified settings

  • callees is renamed functions
  • parseKeyFunctions list the functions in which we should validate the keys instead of the values
  • config
    • renamed cssConfigPath
    • pointing to the main css file
  • cssFiles is not used in v4
  • cssFilesRefreshRate is not used in v4
  • removeDuplicates is not used in v4
  • skipClassAttribute is not used in v4
  • whitelist is set in no-custom-classname's options
  • tags is renamed functions
  • classRegex
    • renamed attributes
    • only accept regular strings

Removed rule

migration-from-tailwind-2 rule has not been migrated to v4.

Do you need help?

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [eslint-plugin-tailwindcss](https://github.com/francoismassart/eslint-plugin-tailwindcss) from 3.18.3 to 4.2.0.
- [Release notes](https://github.com/francoismassart/eslint-plugin-tailwindcss/releases)
- [Changelog](https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/v4/CHANGELOG.md)
- [Upgrade guide](https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/v4/UPGRADE.md)
- [Commits](francoismassart/eslint-plugin-tailwindcss@v3.18.3...v4.2.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-tailwindcss
  dependency-version: 4.2.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Aug 2, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants