Skip to content

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

@sushichan044

Description

@sushichan044

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",
        ],
      },
    ],
  }, 

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions