lesslint在供应商前缀属性上抛出已知属性错误

问题描述

我正在使用grunt-lesslint来对一个项目做绒毛,看起来它在使用csslint的幕后。

奇怪的是,在整理代码时出现此错误

Expected (start | end | center | justify) but found 'distribute'. Properties should be kNown (listed in CSS3 specification) or be a vendor-prefixed property. (kNown-properties)
>> web/css/source/utilities/_flex.less [Line 41,Column 5]:    -ms-flex-pack: distribute;

擦?根据{{​​3}}

所有供应商前缀的属性(以-开头的属性)都将被忽略 因为供应商可以随时添加自己的属性, 并且没有这些属性的规范列表。

引起投诉的少量代码

.flex--justify-around {
    -ms-flex-pack: distribute;
    justify-content: space-around;
}

根据the documentation,哪个看起来像是正确的值。

有什么想法吗?如何哄骗grunt-lesslint使这条线通过?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)