Просмотр исходного кода

fix: auto-fix CI failures in PR Build Check

- 修复 provider-form.tsx 中的 4 个 react/no-unescaped-entities 错误 (使用 " 转义引号)
- 修复 notifications/page.tsx 中未使用的 NotificationSettings 类型导入
- 修复 action-adapter-openapi.ts 中未使用的 eslint-disable 指令

这些都是 ESLint 检查发现的代码规范问题,不影响功能。

Related: #77
Claude Code 4 месяцев назад
Родитель
Сommit
f5e2322bdd

+ 0 - 1
src/app/settings/notifications/page.tsx

@@ -18,7 +18,6 @@ import {
   updateNotificationSettingsAction,
   testWebhookAction,
 } from "@/actions/notifications";
-import type { NotificationSettings } from "@/repository/notifications";
 
 /**
  * 通知设置表单 Schema

+ 2 - 2
src/app/settings/providers/_components/forms/provider-form.tsx

@@ -506,8 +506,8 @@ export function ProviderForm({
             />
             <p className="text-xs text-muted-foreground">
               供应商分组标签。只有用户的 providerGroup
-              与此值匹配时,该用户才能使用此供应商。示例:设置为 "premium" 表示只供
-              providerGroup="premium" 的用户使用
+              与此值匹配时,该用户才能使用此供应商。示例:设置为 &quot;premium&quot; 表示只供
+              providerGroup=&quot;premium&quot; 的用户使用
             </p>
           </div>
         </div>

+ 0 - 1
src/lib/api/action-adapter-openapi.ts

@@ -14,7 +14,6 @@ import type { ActionResult } from "@/actions/types";
 import { logger } from "@/lib/logger";
 
 // Server Action 函数签名 (支持两种格式)
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
 type ServerAction =
   // eslint-disable-next-line @typescript-eslint/no-explicit-any
   | ((...args: any[]) => Promise<ActionResult<any>>) // 标准格式