mirror of
https://github.com/thangisme/notes.git
synced 2025-02-21 06:57:46 -05:00
557 B
557 B
selector-no-redundant-nesting-selector
Disallow redundant nesting selectors (&
).
p {
& a {}
//↑
// This type of selector
}
The following patterns are considered warnings:
p {
& a {}
}
p {
& > a {}
}
p {
& .class {}
}
p {
& + .foo {}
}
The following patterns are not considered warnings:
p {
&.foo {}
}
p {
.foo > & {}
}
p {
&,
.foo,
.bar {
margin: 0;
}
}