Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] className shadow-md and shadow-[#custom-color] are conflicting #298

Closed
rlawlsyoung opened this issue Dec 21, 2023 · 2 comments
Closed
Labels
bug Something isn't working work in progress

Comments

@rlawlsyoung
Copy link

rlawlsyoung commented Dec 21, 2023

Describe the bug
shadow-md, shadow-[#customcolor] are conflicting.
But, shadow-md shadow-cyan-500 are not conflicting.
I'm not familiar with tailwind so I'm not sure, but I suspect it's a bug

To Reproduce
Steps to reproduce the behavior:

  1. Add the className shadow-md shadow-[#customcolor] to a single HTML tag. (shadow size can be any size)
  2. Run eslint ./src --fix command
  3. Error: Classnames shadow-md, shadow-[#customcolor] are conflicting!
  4. But, shadow-md shadow-cyan-500 are not conflicting.

Screenshots
스크린샷 2023-12-21 오후 6 17 54

Environment (please complete the following information):

  • OS: Mac OS
  • Softwares + version used: Node v18.17.0 + pnpm 8.9.0
@rlawlsyoung rlawlsyoung added the bug Something isn't working label Dec 21, 2023
@francoismassart
Copy link
Owner

@rlawlsyoung Please try this beta version:

npm i eslint-plugin-tailwindcss@3.14.2-beta.1 -D

and give me feedbacks.

francoismassart added a commit that referenced this issue Feb 5, 2024
@francoismassart
Copy link
Owner

Fixed in the latest release eslint-plugin-tailwindcss@3.14.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working work in progress
Projects
None yet
Development

No branches or pull requests

2 participants