Run
npm i @up-line/stylelint-bem-ruleset
Add to .stylelintrc.js
module.exports = {
plugins: [
'@up-line/stylelint-bem-ruleset'
]
}
Validate classnames according to classic BEM
{
"stylelint-bem-ruleset/classnames": true
}
Validate scss nesting, read more
{
"stylelint-bem-ruleset/nested": true
}