fix: 修复 ESLint 报错 — 移除未使用的解构变量 + 清理无用 eslint-disable 指令
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 39s
CI/CD Pipeline / Validate - Migration (alembic) (pull_request) Successful in 54s
CI/CD Pipeline / Validate - Type Check (mypy) (pull_request) Successful in 57s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Successful in 47s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m33s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 58s
PR Automation / Auto Approve on CI Green (pull_request) Successful in 1m45s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 1m55s
AI Code Review / AI Code Review (pull_request) Successful in 2m28s
CI/CD Pipeline / PR Build Web Image (pull_request) Successful in 1m54s
CI/CD Pipeline / Validate - Code Quality (pull_request) Successful in 3m20s
CI/CD Pipeline / CI Gate (pull_request) Failing after 13s
CI/CD Pipeline / Production Browser E2E (pull_request) Failing after 960h15m48s
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 960h15m50s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 960h15m50s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 960h15m49s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 960h15m50s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 960h15m51s
CI/CD Pipeline / PR Build Worker Image (pull_request) Failing after 960h18m28s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 960h18m31s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 960h19m7s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 960h19m9s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 960h19m11s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 960h19m13s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 960h19m12s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 960h49m10s
CI/CD Pipeline / PR Build API Image (pull_request) Failing after 960h51m50s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 960h52m28s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 960h52m33s

Step3GeneratePreview.tsx:
- templateName/materialCount/videoRatio 在删除剪辑方案信息卡片后不再使用,改为 _xxx 别名

清理 develop 上遗留的无用 eslint-disable 指令:
- useTtsPanel.ts: react-hooks/exhaustive-deps
- ProtectedRoute.tsx: react-refresh/only-export-components
- client.test.ts: @typescript-eslint/no-explicit-any (5处)
- setup.ts: @typescript-eslint/no-explicit-any (2处)
This commit is contained in:
xiaoxia
2026-08-07 15:08:00 +08:00
parent d2a550f60e
commit 075fe88477
4 changed files with 0 additions and 9 deletions
@@ -60,7 +60,6 @@ export const useTtsPanel = ({ open, config, onChange, onClose }: UseTtsPanelOpti
return () => {
active = false
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [open])
/* ── 组件卸载时清理音频资源 ── */
-1
View File
@@ -3,7 +3,6 @@ import { Navigate } from "react-router-dom"
import { useAuthStore } from "@/store/authStore"
/** 受保护的路由组件 */
// eslint-disable-next-line react-refresh/only-export-components
export const ProtectedRoute = ({ children }: { children: React.ReactNode }) => {
const isAuthenticated = useAuthStore((state) => state.isAuthenticated)
const hasAccessToken = Boolean(localStorage.getItem("access_token"))
-5
View File
@@ -26,12 +26,10 @@ import { refreshAccessToken } from "@/api/auth"
import apiClient from "@/api/client"
// 从真实实例取出拦截器回调
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const requestHandlers = (apiClient as any).interceptors.request.handlers as Array<{
fulfilled: (config: unknown) => unknown
rejected: (error: unknown) => unknown
}>
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const responseHandlers = (apiClient as any).interceptors.response.handlers as Array<{
fulfilled: (response: unknown) => unknown
rejected: (error: unknown) => Promise<unknown>
@@ -258,7 +256,6 @@ describe("apiClient - 401 token refresh", () => {
isAuthenticated: false,
clearAuth: mockClearAuth,
setAuth: vi.fn(),
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any)
const err = makeAxiosError(401, { detail: "Unauthorized" })
@@ -276,7 +273,6 @@ describe("apiClient - 401 token refresh", () => {
isAuthenticated: true,
clearAuth: vi.fn(),
setAuth: mockSetAuth,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any)
vi.mocked(refreshAccessToken).mockResolvedValue({
access_token: "new-access",
@@ -306,7 +302,6 @@ describe("apiClient - 401 token refresh", () => {
isAuthenticated: true,
clearAuth: mockClearAuth,
setAuth: vi.fn(),
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any)
vi.mocked(refreshAccessToken).mockRejectedValue(new Error("refresh failed") as never)
-2
View File
@@ -32,9 +32,7 @@ afterEach(() => {
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Vi {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
interface Assertion<T = any> extends jest.Matchers<void, T> {}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
interface AsymmetricMatchersContaining extends jest.Matchers<void, any> {}
}
}