francoismassart/eslint-plugin-tailwindcss

[BUG] The `tailwindcss/enforces-shorthand` rule loses the importance flag

Serator opened this issue ยท 2 comments

Describe the bug
The automatic fix converts !pl-0 !pr-0 to px-0 (losing !).

To Reproduce
Steps to reproduce the behavior:

  1. Write !pl-0 !pr-0
  2. Fix the problem with autofix.
  3. See error

Expected behavior
The result should be !px-0.

Screenshots
image
image

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.

@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 ๐Ÿ˜‰

@francoismassart Yep, now it works as expected. Thank you so much for your hard work! ๐Ÿ‘