From 3208a76868bc59c9781b1d51f677c55ff7502337 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 20 Jun 2026 07:01:20 -0700 Subject: [PATCH] =?UTF-8?q?chore(lint):=20=E8=B0=83=E6=95=B4=20lint=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=B9=B6=E4=BF=AE=E5=A4=8D=E8=A7=84=E5=88=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierignore | 1 + .stylelintignore | 1 + eslint.config.mjs | 4 +++- package.json | 2 +- .../home/components/picker/picker-dialog.scss | 5 +++- .../components/input/MentionPicker.vue | 2 +- .../MessageTemplateSendForm.vue | 4 +++- src/views/pay/order/OrderDetail.vue | 6 +++-- src/views/pay/refund/RefundDetail.vue | 2 +- src/views/pay/transfer/TransferDetail.vue | 2 +- stylelint.config.js | 24 ++++++++++++++++++- 11 files changed, 43 insertions(+), 10 deletions(-) diff --git a/.prettierignore b/.prettierignore index f68ea8694..c8c675f13 100644 --- a/.prettierignore +++ b/.prettierignore @@ -7,5 +7,6 @@ /src/types/env.d.ts /src/types/auto-components.d.ts /src/types/auto-imports.d.ts +/src/components/Tinyflow/ui/** /docs/**/* CHANGELOG diff --git a/.stylelintignore b/.stylelintignore index aa605b498..9e4560d6b 100644 --- a/.stylelintignore +++ b/.stylelintignore @@ -3,4 +3,5 @@ public/* /dist* /src/types/env.d.ts +/src/components/Tinyflow/ui/** /docs/**/* diff --git a/eslint.config.mjs b/eslint.config.mjs index 34d95ac59..3389e8191 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -17,7 +17,8 @@ export default tseslint.config( 'test/unit/coverage/', 'node_modules/', 'src/main.ts', - 'src/types/auto-components.d.ts' + 'src/types/auto-components.d.ts', + 'src/components/Tinyflow/ui/**' ] }, @@ -61,6 +62,7 @@ export default tseslint.config( 'vue/attributes-order': 'off', 'vue/one-component-per-file': 'off', 'vue/html-closing-bracket-newline': 'off', + 'vue/html-indent': 'off', // Vue 模板缩进交给 Prettier,避免格式化规则互相拉扯。 'vue/max-attributes-per-line': 'off', 'vue/multiline-html-element-content-newline': 'off', 'vue/singleline-html-element-content-newline': 'off', diff --git a/package.json b/package.json index 2f229eac0..d1283c8a9 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "lint": "pnpm lint:eslint:check && pnpm lint:style:check && pnpm lint:format:check", "lint:eslint": "eslint --fix ./src --cache --cache-location node_modules/.cache/eslint/", "lint:eslint:check": "eslint ./src --cache --cache-location node_modules/.cache/eslint/", - "lint:format": "prettier --write --loglevel warn --cache --cache-location node_modules/.cache/prettier/.prettier-cache \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"", + "lint:format": "prettier --write --log-level warn --cache --cache-location node_modules/.cache/prettier/.prettier-cache \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"", "lint:format:check": "prettier --check --cache --cache-location node_modules/.cache/prettier/.prettier-cache \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"", "lint:style": "stylelint --fix \"./src/**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", "lint:style:check": "stylelint \"./src/**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/", diff --git a/src/views/im/home/components/picker/picker-dialog.scss b/src/views/im/home/components/picker/picker-dialog.scss index 7f9943a8e..f976e9e35 100644 --- a/src/views/im/home/components/picker/picker-dialog.scss +++ b/src/views/im/home/components/picker/picker-dialog.scss @@ -1,5 +1,7 @@ // IM 选择类弹窗的公共样式 mixin // 每个业务壳在自己的