From 938c497ca3983d9a10d2ad46905db58ae53862bd Mon Sep 17 00:00:00 2001 From: chengww Date: Sun, 17 May 2026 23:54:28 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=20main=20=E4=B8=8A?= =?UTF-8?q?=E7=9A=84=E5=AD=98=E9=87=8F=20lint=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pr-check.yml 只在 PR 触发,main push 不跑 lint,导致存量错误一直未被发现, PR #675 / #676 都被 Code Quality job 拦下。 - 9 处 prettier/prettier 格式错误:StickyTabPage.vue / RadioCard.vue / list/index.vue / mv/index.vue / podcast/index.vue 的属性换行与 import 排序,全部 eslint --fix 自动修复 - 1 处 no-undef ScrollToOptions(StickyTabPage.vue:79):在 eslint.config.mjs 的 .ts 与 .vue 配置块同时补 ScrollToOptions 到 globals,与既有的 ScrollBehavior 同级;TypeScript DOM lib 类型不在 globals.browser 里, 需手动声明 --- eslint.config.mjs | 6 +++-- .../components/common/StickyTabPage.vue | 4 +++- src/renderer/components/podcast/RadioCard.vue | 6 +---- src/renderer/views/list/index.vue | 2 +- src/renderer/views/mv/index.vue | 4 +--- src/renderer/views/podcast/index.vue | 22 ++++++++++++++----- 6 files changed, 27 insertions(+), 17 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 52d7192..3ac5407 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -55,7 +55,8 @@ export default [ defineEmits: 'readonly', // TypeScript 全局类型 NodeJS: 'readonly', - ScrollBehavior: 'readonly' + ScrollBehavior: 'readonly', + ScrollToOptions: 'readonly' } }, plugins: { @@ -148,7 +149,8 @@ export default [ useMessage: 'readonly', // TypeScript 全局类型 NodeJS: 'readonly', - ScrollBehavior: 'readonly' + ScrollBehavior: 'readonly', + ScrollToOptions: 'readonly' } }, plugins: { diff --git a/src/renderer/components/common/StickyTabPage.vue b/src/renderer/components/common/StickyTabPage.vue index a4e3345..a5275f1 100644 --- a/src/renderer/components/common/StickyTabPage.vue +++ b/src/renderer/components/common/StickyTabPage.vue @@ -4,7 +4,9 @@
-

+

{{ title }}

diff --git a/src/renderer/components/podcast/RadioCard.vue b/src/renderer/components/podcast/RadioCard.vue index 4fc5956..25f52e0 100644 --- a/src/renderer/components/podcast/RadioCard.vue +++ b/src/renderer/components/podcast/RadioCard.vue @@ -23,11 +23,7 @@ const goToDetail = () => {

-
+

{{ t('podcast.noCategoryRadios') }}

@@ -134,7 +143,10 @@ {{ t('common.loading') }}
-
+
{{ t('common.noMore') }}