如何忽略此错误:Class should be nested within its parent Class force-element-nesting。当我在一行中使用大量嵌套覆盖soem类时,我不知道如何处理这个错误,比如:
// sass-lint:disable ???
.one.two.three.four .soemthing .else,
.one.three.hello .another. else
{
//
}目前,我正在对所有块使用// sass-lint:disable-all。
发布于 2018-05-28 11:28:14
它应该在这方面发挥作用:
// sass-lint:disable force-element-nesting
.one.two.three.four .soemthing .else,
.one.three.hello .another. else
{
//
}
// sass-lint:enable force-element-nesting再次启用恢复规则。
https://stackoverflow.com/questions/50564951
复制相似问题