From 322c52c35581a35ff755daa693c805f194acc45a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Tue, 18 Apr 2023 07:34:37 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20:hammer:=20=E4=BF=AE=E6=94=B9`stylelin?= =?UTF-8?q?t`=E5=AF=B9=E6=9C=AA=E7=9F=A5=E5=B1=9E=E6=80=A7=E7=9A=84?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 1ab477ba1a8d8d88f3f9dbc34acf9f20f5009ee5 --- .stylelintrc.cjs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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"], + }, + ], }, };