Open SeanFree opened 4 months ago
For anyone having issues with linting, be sure to define a component https://github.com/postcss/postcss-bem-linter?tab=readme-ov-file#defining-a-component-and-utilities
You can either have components defined:
implicitComponents
plugin option/** @define header **/
.header {
...
}
.header__title {
...
}
Example repo: https://github.com/SeanFree/bem-stylelint-example Node Version: 20.11.1 Stylelint Version: 16.2.1 Plugin Version: 4.0.0
Stylelint Config
Example invalid classes (not being caught by lint rules)
Am I missing something in my setup? I initially set this up with
stylelint-config-standard
which enforcesselector-class-pattern
seemingly in conflict with what should be enforced by the plugin, so I removed the standard config and only have the bem plugin applied. Still no stylelint errors in VSCode or terminal.