-
Notifications
You must be signed in to change notification settings - Fork 11
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
Invalid prelude for @media csstree/validator #44
Comments
The plugin is limited in validation of expressions which contain preprocessor's syntax (since it should be evaluated). So it avoid a validation of them. For now the plugin uses stylelint's |
Just got the same with @mixin keyframes($animationName) {
@keyframes #{$animationName} {
@content;
}
} |
Fixed in 2.1.0 |
I'm seeing the same error (with 2.1.0) using the postcss-lit custom syntax for expressions like this css`
@media (min-width: 500px) and ${namedMedia.css.mobile} {
/* ... */
}
` whereas this doesn't error css`
@media ${namedMedia.css.mobile} {
/* ... */
}
` |
Created #52 to track this. |
As far as I know this is valid SCSS/SASS:
But it results in an error:
My config:
.stylelintrc.yml:
I have installed: stylelint-csstree-validator@2.0.0
First referenced in csstree/csstree#118 #issuecomment-993945845
The text was updated successfully, but these errors were encountered: