We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
no-invalid-properties
Generate fewer warnings
A new option
@layer utilities { .text-shadow-2 { text-shadow: 2px 2px theme('colors.purple.400'); } .text-shadow-3 { text-shadow: 3px 3px theme('colors.purple.400'); } }
Here is a minimal reproduction of the current state of things. https://stackblitz.com/edit/no-irregular-whitespace-ey1hdv5b
Currently, the rule shows an error, as it does not understand Tailwind's custom theme property.
theme
/home/projects/better-tailwind-support/tailwind.css 15:26 error Invalid value '2px 2px theme("colors.purple.400")' for property 'text-shadow'. Expected none | <shadow-t># css/no-invalid-properties 18:26 error Invalid value '3px 3px theme("colors.purple.400")' for property 'text-shadow'. Expected none | <shadow-t># css/no-invalid-properties
We should introduce a new option to the rule, so we can add other supported properties, like Tailwind's theme property.
I would expect the configuration to look something like this:
"css/no-invalid-properties": ["error", "theme", "other", ...]
/cc @JoshuaKGoldberg
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What rule do you want to change?
no-invalid-properties
What change do you want to make?
Generate fewer warnings
How do you think the change should be implemented?
A new option
Example code
What does the rule currently do for this code?
Here is a minimal reproduction of the current state of things.
https://stackblitz.com/edit/no-irregular-whitespace-ey1hdv5b
Currently, the rule shows an error, as it does not understand Tailwind's custom
theme
property.What will the rule do after it's changed?
We should introduce a new option to the rule, so we can add other supported properties, like Tailwind's
theme
property.I would expect the configuration to look something like this:
Participation
Additional comments
/cc @JoshuaKGoldberg
The text was updated successfully, but these errors were encountered: