eslint-plugin-tailwindcss
eslint-plugin-tailwindcss copied to clipboard
[Feature request] Only validate callees
Describe the solution you'd like
Having the callees
option is great; where we can consolidate classes into variables and still have this plugin parse the contents; ctl('flex flex-col')
.
During conversions of large projects, it's typical that a normal React component will have lots of other, non-Tailwind classes in the default className
prop. I'd love to see an option where ONLY the callees are parsed and not the default className
. So className="my-other-class"
won't be parsed, but className={ctl('flex flex-col')}
would be.
Describe alternatives you've considered I'm not sure there's a workaround for this at the moment.
Additional context Nope! But thanks for creating this tool!