From 45e2dc6cd5f0a56129e4eea140e8d31a0da0ffd5 Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Wed, 8 May 2024 16:02:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A7=A9=20=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=B7=BB=E5=8A=A0=E5=88=B0=E5=AD=90=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .stylelintrc.js | 76 ++++++++++++++-------------- lint-staged.config.js | 4 +- package-lock.json | 42 ++++++++++++--- package.json | 1 + src/router/index.ts | 11 ++-- src/router/module/pageRoutes.ts | 11 ++++ src/router/module/statisticRoutes.ts | 2 +- src/views/layout.vue | 4 +- 8 files changed, 99 insertions(+), 52 deletions(-) diff --git a/.stylelintrc.js b/.stylelintrc.js index f0a90f8..180c265 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -2,61 +2,61 @@ module.exports = { root: true, - defaultSeverity: "error", - plugins: ["stylelint-order", "stylelint-less"], + defaultSeverity: 'error', + plugins: ['stylelint-order', 'stylelint-scss'], /* 继承某些已有的规则 */ extends: [ - "stylelint-config-standard", // 配置stylelint拓展插件 - "stylelint-config-html/html", // the shareable html config for Stylelint. - "stylelint-config-html/vue", // 配置 vue 中 template 样式格式化 - "stylelint-config-recess-order", // 配置stylelint css属性书写顺序插件, - "stylelint-config-prettier" // 配置stylelint和prettier兼容 + 'stylelint-config-standard', // 配置stylelint拓展插件 + 'stylelint-config-html/html', // the shareable html config for Stylelint. + 'stylelint-config-html/vue', // 配置 vue 中 template 样式格式化 + 'stylelint-config-recess-order', // 配置stylelint css属性书写顺序插件, + 'stylelint-config-prettier', // 配置stylelint和prettier兼容 ], overrides: [ // 扫描 .vue/html 文件中的