This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
Error when checking nested CSS with syntastic #1615
Comments
Upon further investigation it seems to just the .Share-panel {
border: 1px solid var(--Share-color-grey);
background-color: var(--Share-color-grey-dark);
color: #fff;
position: absolute;
right: 0;
bottom: 100%;
z-index: 1;
min-width: 270px;
text-align: left;
margin-bottom: 16px;
transition: transform 200ms ease-in-out;
transform-origin: 95% 100%;
transform: scale(0, 0);
&.is-open {
transform: scale(1, 1);
}
&:hover .Share-actionIcon {
fill: #4a9442;
}
@media (--xs-min-viewport) {
min-width: 300px;
}
} As soon as I add the following it fails &:after {
color: red;
} |
This looks like a bug in stylelint. Please run this and look at the output: stylelint -f json client/src/css/components/page-header.css The last message ("Expected double colon...") is missing the |
You're right, but it seems to be present in the config: https://github.com/stylelint/stylelint-config-suitcss/blob/master/index.js#L69 |
I'll check into this on stylelint's end. Thanks |
Yep, this was a bug in Stylelint. For future reference here is the report and fix - stylelint/stylelint#531 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It seems when a ruleset has a nested ampersand (via
postcss-nested
) Syntastic throws an unrecognised error:Removing
&:after {}
seems to stop the error happening, and style failures are reported as normal.It's worth noting that using
stylelint
on the command lint works fine:Here is my
.stylelintrc
https://github.com/stylelint/stylelint-config-suitcss
The text was updated successfully, but these errors were encountered: