scss-lint icon indicating copy to clipboard operation
scss-lint copied to clipboard

QualifyingElement doesn't return warning when using :not()

Open wouter-muller opened this issue 8 years ago • 2 comments

I am a big fan of the QualifyingElement linter, but when i write some CSS like this using the :not() selector:

li:not(.active) {
  ...
}

It doesn't return a warning, even though i am clearly combining a qualifier + CSS class.

Probably overlooked, so just wanted to drop it here. Would be great if this could be fixed.

wouter-muller avatar Oct 11 '16 12:10 wouter-muller

A new config for the linter might be good here. Though it might be technically a QualifyingElement situation, I think pseudo-classes are different enough from regular classes to have them managed separately.

abea avatar Oct 11 '16 15:10 abea

Definitely open to a pull request adding support for this. Thanks!

sds avatar Oct 13 '16 06:10 sds