-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Only validate callees #154
Comments
Hi @zslabs, Setting it as But a e.g. for the className={`custom my-other-class ${ctl('yolo')}`} would warn you about WDYT? |
@zslabs |
👋 @francoismassart That works beautifully! Thank you so much for taking a look at this feature request and the implementation. |
released in |
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 defaultclassName
. SoclassName="my-other-class"
won't be parsed, butclassName={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!
The text was updated successfully, but these errors were encountered: