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] enforces-shorthand - replacement is without prefix #121

Closed
Gelbotron opened this issue Feb 10, 2022 · 2 comments
Closed

[BUG] enforces-shorthand - replacement is without prefix #121

Gelbotron opened this issue Feb 10, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Gelbotron
Copy link

Describe the bug
Automatically fixing classes in violation of enforces-shorthand rule resolves the final class without prefix

To Reproduce
class="sfc-border-l-0 sfc-border-r-0" resolves as class="border-x-0"

 2:8  warning  Classnames 'sfc-border-l-0, sfc-border-r-0' could be replaced by the 'border-x-0' shorthand!  tailwindcss/enforces-shorthand

Expected behavior
class="sfc-border-x-0"

Environment (please complete the following information):

  • OS: macOS
  • Softwares + version used:
    • Webstorm 2021.3.1
    • npm 6.14.13, node v14.17.0

eslint config file or live demo
'tailwindcss/enforces-shorthand': 'warn',

@Gelbotron Gelbotron added the bug Something isn't working label Feb 10, 2022
@francoismassart
Copy link
Owner

👋 @Gelbotron
Thank you for taking the time to report the issue. It has been fixed in 3.4.4 please install the plugin at this version and let me know how it goes.

@Gelbotron
Copy link
Author

Hi @francoismassart! I can confirm the issue is now resolved :-) Thanks for Your help!

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

2 participants