Skip to content

[BUG] no-custom-classname doesn't work with hyphenated group names #226

@lachieh

Description

@lachieh

Describe the bug
The no-custom-classname hits a false-positive when group names have anything other than [a-zA-Z0-9]

To Reproduce

<element class="group/custom-name">...</element>
  1:16  warning  Classname 'group/custom-name' is not a Tailwind CSS class!  tailwindcss/no-custom-classname

Expected behavior
Should accept anything that is a valid css rule. From my investigation it looks like almost any character except space. Tailwind itself handles these classes correctly:

https://play.tailwindcss.com/pveMxjkzQb
Screenshot 2023-03-17 at 3 35 01 PM

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