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

Former-commit-id: 1ab477ba1a8d8d88f3f9dbc34acf9f20f5009ee5
This commit is contained in:
郝先瑞
2023-04-18 07:34:37 +08:00
parent c9e48c7661
commit 322c52c355

View File

@@ -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"],
},
],
}, },
}; };