Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 445 Bytes

File metadata and controls

46 lines (37 loc) · 445 Bytes

selector-no-union-class-name

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

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

The following patterns are considered warnings:

.class {
  &-union {}
}
.class {
  &_union {}
}
.class {
  &union {}
}

The following patterns are not considered warnings:

.class {
  &.foo {}
}
.class {
  & p {}
}