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

Feature Request: Add classNames import when autofixing and it is not yet imported #2

Open
bitofbreeze opened this issue Jun 26, 2022 · 1 comment

Comments

@bitofbreeze
Copy link
Contributor

No description provided.

@fsubal
Copy link
Owner

fsubal commented Aug 9, 2022

This is problematic in some cases.

In most cases, classNames() function should be imported from 'classnames' module, but it is not always the case.

What if your project has some wrapper function of clsx and you want to enforce importing from '../lib/clsx.js'? Or what if you are using some libraries like tailwindcss-classnames? How should you configure it?

This is why the rule is agnostic on where your classNames/clsx function comes from.

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

2 participants