Skip to content

[Feature request] Only validate callees #154

@zslabs

Description

@zslabs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions