Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
# selector-no-redundant-nesting-selector
Disallow redundant nesting selectors (`&`).
```scss
p {
& a {}
//↑
// This type of selector
}
```
The following patterns are considered warnings:
```scss
p {
& a {}
}
```
```scss
p {
& > a {}
}
```
```scss
p {
& .class {}
}
```
```scss
p {
& + .foo {}
}
```
The following patterns are *not* considered warnings:
```scss
p {
&.foo {}
}
```
```scss
p {
.foo > & {}
}
```
```scss
p {
&,
.foo,
.bar {
margin: 0;
}
}
```