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

[BUG] no-custom-classname rules prevents migration-from-tailwind-2 rule #88

Closed
francoismassart opened this issue Jan 6, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@francoismassart
Copy link
Owner

francoismassart commented Jan 6, 2022

Describe the bug

You will not get errors messages from migration-from-tailwind-2 like
Classname 'flex-shrink-0' should be updated to ' shrink-0' in Tailwind CSS v3!

To Reproduce
Having both rules enabled:

  • no-custom-classname
  • migration-from-tailwind-2

You will not get errors messages from migration-from-tailwind-2 like
Classname 'flex-shrink-0' should be updated to ' shrink-0' in Tailwind CSS v3!

Expected behavior
Rule migration-from-tailwind-2 should detect if no-custom-classname is enabled, if so, it should add specific values (outdated classnames from TailwindCSS v2 to the whitelist option of the no-custom-classname rule.

Additional context
Another workaround is to:

  1. temporary turn off no-custom-classname rule
  2. fix the errors from migration-from-tailwind-2
  3. finally turn back on no-custom-classname rule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant