Skip to content

[BUG] Custom classnames broke with node minor release 22.12 until the latest v23 #386

@hsjobeki

Description

@hsjobeki

Describe the bug
Eslint reports invalid linting errors. The reported classes do exist and they properly work with one minor version less.

   9:10  error  Classname 'hero' is not a Tailwind CSS class!          tailwindcss/no-custom-classname
  10:12  error  Classname 'hero-content' is not a Tailwind CSS class!  tailwindcss/no-custom-classname
  20:15  error  Classname '!link' is not a Tailwind CSS class!         tailwindcss/no-custom-classname

To Reproduce
Steps to reproduce the behavior:

  1. Install and setup tailwind with some third party plugin like [daisyui](https://daisyui.com/]
  2. use some of the classes provided by the plugin
  3. run eslint with the rule "no-custom-classname"
  4. See error

Environment (please complete the following information):

  • Works fine with:
    • nodejs: v22.11.0
    • npm: 10.9.0
  • Breaks with:
    • nodejs: v22.12.0
    • npm: 10.9.0
  • Also Breaks with newer versions:
    • nodejs: v23.2.0
    • npm: 10.9.0

Works with very older versions:

  • nodejs: v20.18.1

See: https://nodejs.org/en/about/previous-releases

Additional context
All dependency versions and their hashes didn't change at all. All other environmental influences are isolated and stable in my setup.

"node_modules/eslint-plugin-tailwindcss": "3.18.0",
"node_modules/eslint": "version": "8.57.0",
"node_modules/tailwindcss": "3.4.3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions