diff --git a/.stylelintrc.cjs b/.stylelintrc.cjs index 736253b3..06ed90d5 100644 --- a/.stylelintrc.cjs +++ b/.stylelintrc.cjs @@ -23,15 +23,21 @@ module.exports = { "import-notation": "string", // 指定导入CSS文件的方式("string"|"url") "selector-class-pattern": null, // 选择器类名命名规则 "custom-property-pattern": null, // 自定义属性命名规则 - "keyframes-name-pattern": null, - "property-no-unknown": null, // 允许未知的属性 - "no-descending-specificity": null, - // 允许 global 、export 伪类 + "keyframes-name-pattern": null, // 动画帧节点样式命名规则 + "no-descending-specificity": null, // 允许无降序特异性 + // 允许 global 、export 、deep伪类 "selector-pseudo-class-no-unknown": [ true, { ignorePseudoClasses: ["global", "export", "deep"], }, ], + // 允许未知属性 + "property-no-unknown": [ + true, + { + ignoreProperties: ["menuBg", "menuText", "menuActiveText"], + }, + ], }, };