|
|
|
@ -1,3 +1,11 @@
|
|
|
|
|
/*
|
|
|
|
|
* @Author: donghao donghao@supervision.ltd
|
|
|
|
|
* @Date: 2024-01-12 14:35:28
|
|
|
|
|
* @LastEditors: donghao donghao@supervision.ltd
|
|
|
|
|
* @LastEditTime: 2024-01-17 11:42:27
|
|
|
|
|
* @FilePath: \General-AI-Platform-Web-Client\stylelint.config.js
|
|
|
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
|
|
|
*/
|
|
|
|
|
module.exports = {
|
|
|
|
|
root: true,
|
|
|
|
|
extends: [
|
|
|
|
@ -6,20 +14,6 @@ module.exports = {
|
|
|
|
|
"stylelint-config-recess-order"
|
|
|
|
|
],
|
|
|
|
|
plugins: ["stylelint-order", "stylelint-prettier", "stylelint-scss"],
|
|
|
|
|
overrides: [
|
|
|
|
|
{
|
|
|
|
|
files: ["**/*.(css|html|vue)"],
|
|
|
|
|
customSyntax: "postcss-html"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
files: ["*.scss", "**/*.scss"],
|
|
|
|
|
customSyntax: "postcss-scss",
|
|
|
|
|
extends: [
|
|
|
|
|
"stylelint-config-standard-scss",
|
|
|
|
|
"stylelint-config-recommended-vue/scss"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
rules: {
|
|
|
|
|
"selector-class-pattern": null,
|
|
|
|
|
"no-descending-specificity": null,
|
|
|
|
@ -60,7 +54,12 @@ module.exports = {
|
|
|
|
|
ignore: ["after-comment", "first-nested"]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
|
|
|
|
|
"unit-no-unknown": [
|
|
|
|
|
true,
|
|
|
|
|
{
|
|
|
|
|
ignoreUnits: ["rpx"]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"order/order": [
|
|
|
|
|
[
|
|
|
|
|
"dollar-variables",
|
|
|
|
@ -77,7 +76,9 @@ module.exports = {
|
|
|
|
|
},
|
|
|
|
|
"rules"
|
|
|
|
|
],
|
|
|
|
|
{ severity: "warning" }
|
|
|
|
|
{
|
|
|
|
|
severity: "warning"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
ignoreFiles: ["**/*.js", "**/*.ts", "**/*.jsx", "**/*.tsx"]
|
|
|
|
|