这是一个例子:
.something {
& > * {
&:not(:first-child) {
margin-right: 16px;
}
&:not(:last-child) {
margin-left: 16px;
}
}
&-element {
& > * { /* Expected selector ".something-element > *" to come before selector ".something > *:not(:first-child)" (no-descending-specificity) */
&:not(:first-child) {
margin-top: 16px;
}
&:not(:last-child) {
margin-bottom: 16px;
}
}
}
}
我的 stylelint.config.json:
module.exports = {
extends: ['stylelint-config-recommended-scss'],
};
如何修复 stylelint 错误?或者它可能是错误?