所以我准备将我的sass写入BEM大会。我已经使用sass-lint configuration generator创建了我的配置,并且仅将class-name-format
的{{1}}编辑为- convention:
但是我仍然遇到了一些问题。
也许我误解了BEM?
错误:
[sass-lint]类'
strictbem
'应该写在BEM中(Block 元素修饰符)格式(类名称格式).bus__tyre--front
萨斯:
<element class="bus__tyre--front">
SASS-lint.yml:
.bus {
position: relative;
&__tyre {
position: absolute;
&--front {
bottom: -22px;
right: 3%;
width: 17%;
}
}
}