Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md « selector-no-union-class-name « rules « src « stylelint-scss « node_modules « assets - github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ef773c9493ddef0d9ace450f5819e577991f1a86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# selector-no-union-class-name

Disallow union class names with the parent selector (`&`).

```scss
.class {
  &-union {
//↑
// This type usage of `&`
  }
}
```

The following patterns are considered warnings:

```scss
.class {
  &-union {}
}
```

```scss
.class {
  &_union {}
}
```

```scss
.class {
  &union {}
}
```

The following patterns are *not* considered warnings:

```scss
.class {
  &.foo {}
}
```

```scss
.class {
  & p {}
}
```