ecklf / tailwindcss-radix

Utilities and variants for styling Radix state
https://tailwindcss-radix.vercel.app
MIT License
2.11k stars 67 forks source link

Incompatibility with tailwind eslint #32

Closed yagiz-noonlight closed 1 year ago

yagiz-noonlight commented 1 year ago

I'm receiving errors on my formatter:

./src/components/sidebar/account-dropdown.tsx
36:33  Warning: Classname 'radix-side-top:animate-slide-up' is not a Tailwind CSS class!  tailwindcss/no-custom-classname
36:33  Warning: Classname 'radix-side-bottom:animate-slide-down' is not a Tailwind CSS class!  tailwindcss/no-custom-classname

Config

{
  "extends": [
    "next/core-web-vitals",
    "prettier",
    "plugin:storybook/recommended",
    "plugin:tailwindcss/recommended"
  ]
}
ecklf commented 1 year ago

I’d suggest you report this to the eslint plug-in repository that it doesn’t seem to resolve plug-in generated classes correctly. Nothing I can do from this side.

max-pod commented 1 year ago

@yagiz-noonlight Did you find a solution? If not, I created a ticket: https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/210