Eslint warning Classname 'xxx' is not a Tailwind CSS class! tailwindcss/no-custom-classname when using shadcn/ui
Table of contents
How to fix it
Just add a rule in lint file.
// .eslintrc
"rules": {
/**
...
**/
"tailwindcss/no-custom-classname": "off"
},
Why do this?
https://github.com/shadcn-ui/ui/blob/ea677cc74eb0b35591e06558af80cfce2c5b926b/.eslintrc.json#L14