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
The following code throw a no-mergeable-selectors warning:
// - Mobile -.col-menu { ... // 12-size column }.col-content { ... // 12-size column }// - Tablet and large screen -@includebreakpoint(medium) { // media block in foundation.col-menu { ... // 3-size column }.col-content { ... // 9-size column }
}
// - or -@mediascreenand (min-width: 40em) { // same thing
...
}
I think no-mergeable-selectors shouldn't consider that these blocks are mergeable. @include breakpoint(...) can be repeated inside each class declaration, but it's more difficult to read, maintain, and sometimes it can't be possible.
no-mergeable-selectors should have the following behaviors:
.foo { ... }
// In a scope, no error@includebar {
.foo { ... }
}
@media (min-width: 40em) {
.foo { ... )
}
// In different scopes, no error@includebaz { .foo { ... } } // different mixin@includebar(qux) { .foo { ... } } // same mixin, with an argument@includebar(quux) { .foo { ... } } // same mixin, different argument@media (min-width: 20em) { .foo { ... } } // different media argument// But if the selector have already been declared for this scope, so it is mergeable.foo { ... } // Error@includebar { .foo { ... } } // Error@media (min-width: 40em) { .foo { ... } } // Error
What do you think ?
The text was updated successfully, but these errors were encountered:
I think we may already have you covered here, I recently updated the rule but unfortunately the update hasn't come out yet due to some windows issues with the AST we're using.
In the meantime you can look twoards the bottom of the latest no-mergeable-selectors test file to see the extra cases I've got it checking against/ignoring now. I'll have a closer look tomorrow though and make sure.
@ncoden we need to decide the best course of action with the windows problems for now and whether we just release anyway with a notice for affected users to stay on 1.5.1 but hopefully that wont be too long, we're just all incredibly busy again 😭
Hi,
The following code throw a
no-mergeable-selectors
warning:I think
no-mergeable-selectors
shouldn't consider that these blocks are mergeable.@include breakpoint(...)
can be repeated inside each class declaration, but it's more difficult to read, maintain, and sometimes it can't be possible.no-mergeable-selectors
should have the following behaviors:What do you think ?
The text was updated successfully, but these errors were encountered: