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

[Feature request] #152

Closed
acewf opened this issue Aug 10, 2022 · 2 comments
Closed

[Feature request] #152

acewf opened this issue Aug 10, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@acewf
Copy link
Sponsor Contributor

acewf commented Aug 10, 2022

Is your feature request related to a problem? Please describe.
Currently if use arbitrary values and class declaration there is no warning about the conflicting rules in specific formats like text-[color:var(--my-var,#ccc)]

Describe the solution you'd like
When both classes and arbitrary values are conflicting should have a warning/error like https://github.com/francoismassart/eslint-plugin-tailwindcss/blob/master/docs/rules/no-contradicting-classname.md

Additional context
as example lint will give you a warning if you do

class="text-white text-[#ddd]"
// or 
class="rounded-xl rounded-[var(--some)]"

but not, if do

class="text-white text-[color:var(--my-var,#ccc)]"
@acewf acewf added the enhancement New feature or request label Aug 10, 2022
acewf pushed a commit to acewf/eslint-plugin-tailwindcss that referenced this issue Aug 12, 2022
acewf pushed a commit to acewf/eslint-plugin-tailwindcss that referenced this issue Aug 12, 2022
acewf pushed a commit to acewf/eslint-plugin-tailwindcss that referenced this issue Aug 12, 2022
@francoismassart
Copy link
Owner

Thank your for your contribution, I just released it on the beta channel:
npm i eslint-plugin-tailwindcss@3.6.1-beta.0
I'll release it on 3.6.1 next week.

@francoismassart
Copy link
Owner

Version 3.6.1 is released 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants