Open Aleuck opened 4 months ago
Describe the bug enforces-shorthand rule gets confused with different rounded classes, suggesting fixes that are not equivalent to original code.
enforces-shorthand
To Reproduce Steps to reproduce the behavior:
rounded-b-xl
rounded-tr-xl
eslint-plugin-tailwindcss
Classnames 'rounded-tr-xl' could be replaced by the 'rounded-r-xl' shorthand! eslint(tailwindcss/enforces-shorthand)
eslint --fix
rounded-r-xl
Expected behavior No warning should be shown and no fix should be made as both classes are not redundant.
Environment (please complete the following information):
Describe the bug
enforces-shorthand
rule gets confused with different rounded classes, suggesting fixes that are not equivalent to original code.To Reproduce Steps to reproduce the behavior:
rounded-b-xl
androunded-tr-xl
(rounded bottom and top-right);eslint-plugin-tailwindcss
with recommended settings;eslint --fix
;rounded-b-xl
androunded-tr-xl
) withrounded-r-xl
only.Expected behavior No warning should be shown and no fix should be made as both classes are not redundant.
Environment (please complete the following information):