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] add responsiveVariants to ignoredKeys by default #323

Open
sushi-chaaaan opened this issue Mar 9, 2024 · 0 comments · May be fixed by #336
Open

[Feature request] add responsiveVariants to ignoredKeys by default #323

sushi-chaaaan opened this issue Mar 9, 2024 · 0 comments · May be fixed by #336
Labels
enhancement New feature or request

Comments

@sushi-chaaaan
Copy link

Is your feature request related to a problem? Please describe.
In tailwind-variants, we can use Responsive Variants to create responsive and easy-to-use components.
But, this will cause no-custom-classname warning because responsiveVariants is not in ignoredKeys by default.

Describe the solution you'd like
Add responsiveVariants to ignoredKeys.

Describe alternatives you've considered
Ignore rules when necessary.

Additional context
image

current workaround:

  rules: {
    "tailwindcss/no-custom-classname": [
      "warn",
      {
        ignoredKeys: [
          "compoundVariants",
          "defaulVariants",
          "responsiveVariants",
        ],
      },
    ],
  }, 
@sushi-chaaaan sushi-chaaaan added the enhancement New feature or request label Mar 9, 2024
@sushi-chaaaan sushi-chaaaan linked a pull request Apr 27, 2024 that will close this issue
13 tasks
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

Successfully merging a pull request may close this issue.

1 participant