Closed bencripps closed 7 years ago
In your example what CSS would you expect the linter to be checking?
I'd prefer that the linter not skip over this selector so we can verify we the class name matches our naming conventions (defined by stylelint-selector-bem-pattern
).
In this case .namespace-Component
does not match the comment at the top, so I would expect to see an error in the lint output.
Makes sense. Sounds like what you suggested is the sensible route and we don't assume these rulesets are empty.
Fixed in #119
With the following CSS, the
hasNoDeclarations
function in get-selectors is returning true, which means we are not linting the selector name. (We're running our code through a couple plugins, mentioned below, but it looks like those are behaving correctly).I would expect this to provide a warning, but since the hasNoDeclarations function returns false, we early return before linting the selector name. I see the following comment:
so I assume this is the expected behavior, but I wonder if we should add a clause for extends and other
atrules
?We're using the following versions: