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] tabular-nums and slashed-zero are conflicting, but should not. #316

Closed
einarlove opened this issue Jan 30, 2024 · 5 comments
Closed
Labels
bug Something isn't working good first issue Good for newcomers work in progress

Comments

@einarlove
Copy link

Describe the bug
Using tabular-nums and slashed-zero gives linting error for conflicting classnames.

To Reproduce
Steps to reproduce the behavior:
Add both tabular-nums and slashed-zero as classnames to same element with tailwindcss/no-contradicting-classname enabled.

Expected behavior
It should not give error/warning. The documentation clearly states they can be combined since it uses css variables under the hood.

eslint config file or live demo
"tailwindcss/no-contradicting-classname": "warn"

@einarlove einarlove added the bug Something isn't working label Jan 30, 2024
@francoismassart
Copy link
Owner

@einarlove, indeed some can be combined and some cannot, I made a quick Tailwind Play to document this for later use
https://play.tailwindcss.com/QStyY11EAJ

@francoismassart francoismassart added the good first issue Good for newcomers label Feb 1, 2024
@francoismassart
Copy link
Owner

I'll close once released 😉

@francoismassart
Copy link
Owner

Please try it via npm i eslint-plugin-tailwindcss@3.14.2-beta.0 -D and let me know how it goes. 😉

@francoismassart
Copy link
Owner

@einarlove Please try this beta version:

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

and give me feedbacks.

@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 good first issue Good for newcomers work in progress
Projects
None yet
Development

No branches or pull requests

2 participants