From c49641d988a2f404b04d4fcc9642b26d1c22f550 Mon Sep 17 00:00:00 2001 From: preschool Date: Tue, 13 Aug 2024 13:46:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=E7=A7=BB=E9=99=A4stylelint?= =?UTF-8?q?=E5=B7=B2=E5=BC=83=E7=94=A8=E7=9A=84=E8=A7=84=E5=88=99=E3=80=81?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E4=BF=9D=E5=AD=98=E6=97=B6=E8=87=AA=E5=8A=A8?= =?UTF-8?q?stylelint=E6=A0=BC=E5=BC=8F=E5=8C=96=E3=80=81=E7=A7=BB=E9=99=A4?= =?UTF-8?q?tsconfig=E6=8A=A5=E9=94=99=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 ++- stylelint.config.js | 10 +++++----- tsconfig.json | 10 +++++----- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 54be7d8c..7d8aed49 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -83,7 +83,8 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "editor.codeActionsOnSave": { - "source.fixAll.eslint": "explicit" + "source.fixAll.eslint": "explicit", + "source.fixAll.stylelint": "explicit" }, "[vue]": { "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" diff --git a/stylelint.config.js b/stylelint.config.js index 890b45bc..b3367850 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -13,19 +13,19 @@ module.exports = { 'at-rule-no-unknown': [ true, { - ignoreAtRules: ['function', 'if', 'each', 'include', 'mixin'] + ignoreAtRules: ['function', 'if', 'each', 'include', 'mixin', 'extend'] } ], 'media-query-no-invalid': null, 'function-no-unknown': null, 'no-empty-source': null, 'named-grid-areas-no-invalid': null, - 'unicode-bom': 'never', + // 'unicode-bom': 'never', 'no-descending-specificity': null, 'font-family-no-missing-generic-family-keyword': null, - 'declaration-colon-space-after': 'always-single-line', - 'declaration-colon-space-before': 'never', - 'declaration-block-trailing-semicolon': null, + // 'declaration-colon-space-after': 'always-single-line', + // 'declaration-colon-space-before': 'never', + // 'declaration-block-trailing-semicolon': null, 'rule-empty-line-before': [ 'always', { diff --git a/tsconfig.json b/tsconfig.json index 182852ac..38376ef9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,11 +24,11 @@ "@/*": ["src/*"] }, "types": [ - "@intlify/unplugin-vue-i18n/types", - "vite/client", - "element-plus/global", - "@types/qrcode", - "vite-plugin-svg-icons/client" + // "@intlify/unplugin-vue-i18n/types", + "vite/client" + // "element-plus/global", + // "@types/qrcode", + // "vite-plugin-svg-icons/client" ], "outDir": "target", // 请保留这个属性,防止tsconfig.json文件报错 "typeRoots": ["./node_modules/@types/", "./types"]