[BUG] The `tailwindcss/enforces-shorthand` rule loses the importance flag
Serator opened this issue ยท 2 comments
Serator commented
Describe the bug
The automatic fix converts !pl-0 !pr-0
to px-0
(losing !
).
To Reproduce
Steps to reproduce the behavior:
- Write
!pl-0 !pr-0
- Fix the problem with autofix.
- See error
Expected behavior
The result should be !px-0
.
Environment (please complete the following information):
- OS: Windows 10
- Softwares + version used:
- VSCode: 1.63.2
- eslint-plugin-tailwindcss: 3.3.6
- tailwindcss: 3.0.17
eslint config file or live demo
By providing a link to a live demo, a demo video or a github repo fixing the issue will be easier.
francoismassart commented
@Serator thak you for reporting the issue, please try this beta release:
npm i -D eslint-plugin-tailwindcss@3.4.1-beta.0
and give me some feedback ๐
Serator commented
@francoismassart Yep, now it works as expected. Thank you so much for your hard work! ๐