-
-
Notifications
You must be signed in to change notification settings - Fork 71
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] tailwindcss/enforces-shorthand reports false positive #307
Comments
+1 We are also showing unexpected
Thank you @francoismassart for this plugin! |
+1 We are seeing unexpected Thanks for the plugin! |
+1 I am also getting an unexpected size-screen shorthand, in V3.14.0, using this example: |
@iscekic @Raithdk @elussich-globant @ryan-dahlia @patrikholcak and as always please provide feedback in this issue 👍 |
this seems to fix the same issue I was having as Raithdk |
Describe the bug
For some combinations of
h-
andw-
classes, asize-
equivalent does not exist, yet the rule reports them as invalid.To Reproduce
h-screen w-screen
Expected behavior
No error reported as
size-screen
doesn't exist per the docsScreenshots
N/A
Environment (please complete the following information):
"eslint-plugin-tailwindcss": "3.14.0"
Additional context
The rule also reports false positives for custom values which don't exist in the tailwind config. Eg, I have
30
and60
defined for width and height, but not for size - thereforeh-30 w-30
can't be replaced bysize-30
.The text was updated successfully, but these errors were encountered: