postcss / postcss-bem-linter

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

does not work with SASS mixins and ampersand selector #97

Open AndyOGo opened 7 years ago

AndyOGo commented 7 years ago

The following code incorrectly lints: Invalid component selector "&:hover"

@mixin link {
  color: blue;

  &:hover {
    color: red;
  }
}

.link {
  @include link();
}

Note With declarative style of Less this is not a problem.

tipsy commented 6 years ago

🎂 🎂 🎂 🎂 This issue is 1 year old today. Any progress?