一、问题
stylelint自动将scss中大写配置转为小写
1 2 3 4 5 |
:root { --layout-aside-width: 200px; --el-font-family: theme(fontFamily.sans); } |
二、问题解决
在.stylelintrc中添加如下规则:
1 2 3 4 5 6 |
"value-keyword-case": [ "lower", { "ignoreFunctions": ["theme"] } ] |
三、文档
https://stylelint.io/user-guide/rules/list/value-keyword-case