|
@@ -5,7 +5,7 @@ module.exports = {
|
|
|
rules: {
|
|
|
'plugin/declaration-block-no-ignored-properties': true,
|
|
|
// 各分类属性顺序
|
|
|
- 'order/order': ['custom-properties', 'dollar-variables', 'declarations', 'rules', 'at-rules'],
|
|
|
+ 'order/order': ['at-rules', 'custom-properties', 'dollar-variables', 'declarations', 'rules'],
|
|
|
// 指定2个空格
|
|
|
indentation: 2,
|
|
|
// 多个选择器样式之间允许有空行
|
|
@@ -24,8 +24,6 @@ module.exports = {
|
|
|
'selector-max-id': 1,
|
|
|
// 最多2个类型选择器
|
|
|
'selector-max-type': 2,
|
|
|
- // 不允许使用通配符选择器
|
|
|
- 'selector-max-universal': 0,
|
|
|
// 不允许未知的动画
|
|
|
'no-unknown-animations': true,
|
|
|
// 在字体名称必须使用引号的地方使用引号,其他地方不能使用
|
|
@@ -39,6 +37,7 @@ module.exports = {
|
|
|
// 首行不允许空行
|
|
|
'no-empty-first-line': true,
|
|
|
// 不允许使用 unicode 作为顺序标记
|
|
|
- 'unicode-bom': 'never'
|
|
|
+ 'unicode-bom': 'never',
|
|
|
+ 'at-rule-no-unknown': null
|
|
|
}
|
|
|
};
|