postcss / postcss-bem-linter

A BEM linter for postcss
MIT License
572 stars 35 forks source link

Components not linted if no immediate rule #134

Closed AlecRust closed 5 years ago

AlecRust commented 6 years ago

If a selector doesn't have an immediate rule the block doesn't get linted e.g.

/** @define Test */

.Test {}

.anything {

  @media (--viewport-medium) {
    width: 100%;
  }
}

.anything doesn't get linted, but it does if this is the CSS:

/** @define Test */

.Test {}

.anything {
  color: red;

  @media (--viewport-medium) {
    width: 100%;
  }
}
simonsmith commented 6 years ago

Related to #119 - Need to adjust that solution to support @media

simonsmith commented 5 years ago

Fixed in #140