2025-03-27 13:31:34 +08:00
|
|
|
{
|
|
|
|
|
"extends": [
|
|
|
|
|
"stylelint-config-standard",
|
|
|
|
|
"stylelint-config-recommended-scss",
|
|
|
|
|
"stylelint-config-recess-order",
|
|
|
|
|
"stylelint-config-html/vue"
|
|
|
|
|
],
|
2025-03-27 16:57:59 +08:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"files": ["**/*.(scss|css|vue|html)"],
|
|
|
|
|
"customSyntax": "postcss-scss"
|
|
|
|
|
}
|
|
|
|
|
],
|
2025-03-27 13:31:34 +08:00
|
|
|
"rules": {
|
|
|
|
|
"no-descending-specificity": null,
|
|
|
|
|
"selector-class-pattern": null,
|
|
|
|
|
"keyframes-name-pattern": null,
|
|
|
|
|
"unit-no-unknown": null,
|
|
|
|
|
"selector-type-no-unknown": [
|
|
|
|
|
true,
|
|
|
|
|
{
|
|
|
|
|
"ignoreTypes": ["page"]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"color-hex-length": null,
|
|
|
|
|
"declaration-property-value-no-unknown": [
|
|
|
|
|
true,
|
|
|
|
|
{
|
|
|
|
|
"ignoreProperties": [
|
|
|
|
|
"font-size",
|
|
|
|
|
"width",
|
|
|
|
|
"height",
|
|
|
|
|
"margin",
|
|
|
|
|
"padding",
|
|
|
|
|
"border-radius",
|
|
|
|
|
"line-height",
|
|
|
|
|
"box-shadow"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"shorthand-property-no-redundant-values": null,
|
|
|
|
|
"alpha-value-notation": null,
|
|
|
|
|
"color-function-notation": null,
|
|
|
|
|
"declaration-property-value-allowed-list": {
|
|
|
|
|
"font-size": ["/rpx$/"],
|
|
|
|
|
"width": ["/rpx$/"],
|
|
|
|
|
"height": ["/rpx$/"],
|
|
|
|
|
"margin": ["/rpx$/"],
|
|
|
|
|
"padding": ["/rpx$/"],
|
|
|
|
|
"border-radius": ["/rpx$/"],
|
|
|
|
|
"line-height": ["/rpx$/"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|