eslint-plugin-tailwindcss icon indicating copy to clipboard operation
eslint-plugin-tailwindcss copied to clipboard

[Feature request] Only validate callees

Open zslabs opened this issue 2 years ago • 0 comments

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!

zslabs avatar Aug 17 '22 21:08 zslabs