Aiming to avoid unnecessary code reviews. So I have a case when someone added rules without reusing the previous selector:
.games-lib-table {
// ...
&__info {
// ...
}
}
// later in the file someone added
.games-lib-table__info_filters {
// ...
}
My first idea was to use stylint-scss: enforce selector-nest-combinators
then somehow to prohibit duplication. But that's not nesting combinators rather a union of a class name.
Anyone has an idea how to enforce reusing existing class name unions like I've described?
Maybe there's some other linter besides Stylelint/stylelint-scss that could do that?