sasstools / sass-lint

Pure Node.js Sass linting
MIT License
1.77k stars 530 forks source link

Force pseudo-nesting with parent selector #1317

Open mrleblanc101 opened 3 years ago

mrleblanc101 commented 3 years ago

Force pseudo-nesting rule cause error when using parent selector. I think this rule should ignore line with parent selector as it's impossible to use nesting in that case as far as I know.

Correct code that cause error:

.admission-title {
    color: blue;
    .admission-item:nth-child(3n - 1) & {
        color: red
    }
}