提交 322c52c3 编写于 作者: 郝先瑞

chore: 🔨 修改`stylelint`对未知属性的处理配置

Former-commit-id: 1ab477ba
上级 c9e48c76
...@@ -23,15 +23,21 @@ module.exports = { ...@@ -23,15 +23,21 @@ module.exports = {
"import-notation": "string", // 指定导入CSS文件的方式("string"|"url") "import-notation": "string", // 指定导入CSS文件的方式("string"|"url")
"selector-class-pattern": null, // 选择器类名命名规则 "selector-class-pattern": null, // 选择器类名命名规则
"custom-property-pattern": null, // 自定义属性命名规则 "custom-property-pattern": null, // 自定义属性命名规则
"keyframes-name-pattern": null, "keyframes-name-pattern": null, // 动画帧节点样式命名规则
"property-no-unknown": null, // 允许未知的属性 "no-descending-specificity": null, // 允许无降序特异性
"no-descending-specificity": null, // 允许 global 、export 、deep伪类
// 允许 global 、export 伪类
"selector-pseudo-class-no-unknown": [ "selector-pseudo-class-no-unknown": [
true, true,
{ {
ignorePseudoClasses: ["global", "export", "deep"], ignorePseudoClasses: ["global", "export", "deep"],
}, },
], ],
// 允许未知属性
"property-no-unknown": [
true,
{
ignoreProperties: ["menuBg", "menuText", "menuActiveText"],
},
],
}, },
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册