francoismassart / eslint-plugin-tailwindcss

ESLint plugin for Tailwind CSS usage
https://www.npmjs.com/package/eslint-plugin-tailwindcss
MIT License
1.38k stars 65 forks source link

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

Open sushi-chaaaan opened 4 months ago

sushi-chaaaan commented 4 months ago

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