init
This commit is contained in:
116
stylelint.config.js
Normal file
116
stylelint.config.js
Normal file
@@ -0,0 +1,116 @@
|
||||
module.exports = {
|
||||
"extends": ["stylelint-config-standard", "stylelint-config-standard-vue"],
|
||||
"plugins": ["stylelint-order"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["**/*.(scss|css|vue|html)"],
|
||||
"customSyntax": "postcss-scss"
|
||||
},
|
||||
{
|
||||
"files": ["**/*.(html|vue)"],
|
||||
"customSyntax": "postcss-html"
|
||||
}
|
||||
],
|
||||
"ignoreFiles": [
|
||||
"**/*.js",
|
||||
"**/*.jsx",
|
||||
"**/*.tsx",
|
||||
"**/*.ts",
|
||||
"**/*.json",
|
||||
"**/*.md",
|
||||
"**/*.yaml",
|
||||
"dist/*",
|
||||
"uni_modules/*"
|
||||
],
|
||||
"rules": {
|
||||
"import-notation": "string",
|
||||
"unit-no-unknown": [true, { "ignoreUnits": ["rpx"] }],
|
||||
"no-descending-specificity": null,
|
||||
"selector-pseudo-element-no-unknown": [
|
||||
true,
|
||||
{
|
||||
"ignorePseudoElements": ["v-deep"]
|
||||
}
|
||||
],
|
||||
"selector-pseudo-class-no-unknown": [
|
||||
true,
|
||||
{
|
||||
"ignorePseudoClasses": ["deep"]
|
||||
}
|
||||
],
|
||||
"selector-type-no-unknown": [true, { "ignoreTypes": ["page", "radio", "checkbox", "scroll-view"] }],
|
||||
"order/properties-order": [
|
||||
"position",
|
||||
"top",
|
||||
"right",
|
||||
"bottom",
|
||||
"left",
|
||||
"z-index",
|
||||
"display",
|
||||
"justify-content",
|
||||
"align-items",
|
||||
"float",
|
||||
"clear",
|
||||
"overflow",
|
||||
"overflow-x",
|
||||
"overflow-y",
|
||||
"padding",
|
||||
"padding-top",
|
||||
"padding-right",
|
||||
"padding-bottom",
|
||||
"padding-left",
|
||||
"margin",
|
||||
"margin-top",
|
||||
"margin-right",
|
||||
"margin-bottom",
|
||||
"margin-left",
|
||||
"width",
|
||||
"min-width",
|
||||
"max-width",
|
||||
"height",
|
||||
"min-height",
|
||||
"max-height",
|
||||
"font-size",
|
||||
"font-family",
|
||||
"text-align",
|
||||
"text-justify",
|
||||
"text-indent",
|
||||
"text-overflow",
|
||||
"text-decoration",
|
||||
"white-space",
|
||||
"color",
|
||||
"background",
|
||||
"background-position",
|
||||
"background-repeat",
|
||||
"background-size",
|
||||
"background-color",
|
||||
"background-clip",
|
||||
"border",
|
||||
"border-style",
|
||||
"border-width",
|
||||
"border-color",
|
||||
"border-top-style",
|
||||
"border-top-width",
|
||||
"border-top-color",
|
||||
"border-right-style",
|
||||
"border-right-width",
|
||||
"border-right-color",
|
||||
"border-bottom-style",
|
||||
"border-bottom-width",
|
||||
"border-bottom-color",
|
||||
"border-left-style",
|
||||
"border-left-width",
|
||||
"border-left-color",
|
||||
"border-radius",
|
||||
"opacity",
|
||||
"filter",
|
||||
"list-style",
|
||||
"outline",
|
||||
"visibility",
|
||||
"box-shadow",
|
||||
"text-shadow",
|
||||
"resize",
|
||||
"transition"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user