Sha256: 89a8a39d42ce17548f5bf319178e475aa5e7bbde0db84be76d225163babcfdf4

Contents?: true

Size: 445 Bytes

Versions: 24

Compression:

Stored size: 445 Bytes

Contents

# 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 {}
}
```

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-4.1.8 node_modules/stylelint-scss/src/rules/selector-no-union-class-name/README.md
trusty-cms-4.1.7 node_modules/stylelint-scss/src/rules/selector-no-union-class-name/README.md
trusty-cms-4.1.6 node_modules/stylelint-scss/src/rules/selector-no-union-class-name/README.md
trusty-cms-4.1.5 node_modules/stylelint-scss/src/rules/selector-no-union-class-name/README.md