Skip to content
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

New rule: Only prefer classNames() when it has conditional branchings #62

Open
fsubal opened this issue Feb 5, 2024 · 0 comments
Open

Comments

@fsubal
Copy link
Owner

fsubal commented Feb 5, 2024

It seems that some people wants classNames() or clsx() only when it has conditional branchings (like ternary expressions), as it's just a pure overhead to always joining classes at runtime.

Things to consider

  • Should it be a new rule? or just an option for existing prefer-classnames-function rule?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant