You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I think it's a nice idea, but I think that in order for the suggestion to work, the user would need to define in the rule options what are the characters to separate the different parts of the class selector. Without that the rule would not know what is part of the name and what is a separator.
Aiming to avoid unnecessary code reviews. So I have a case when someone added rules without reusing the previous selector:
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?
The text was updated successfully, but these errors were encountered: