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