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] Arbitary bg-[size] and bg-[position] will cause a no-contradicting-classname error #321

Open
robcaldecott opened this issue Mar 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@robcaldecott
Copy link

Describe the bug
When using two arbitary bg class names the plugin generates a tailwindcss/no-contradicting-classname error.

For example:

<div className="bg-[size:20px_20px] bg-[position:right_16px_center]" />

This is valid and will generate:

background-size: 20px 20px;
background-position: right 16px center;

Expected behavior
This lint error should not appear.

Screenshots
image

Environment (please complete the following information):

  • OS: macOS
  • Softwares + version used:
    • VS Code version: 1.87.0
    • eslint-plugin-tailwindcss v3.14.3
@robcaldecott robcaldecott added the bug Something isn't working label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant