chore(lint): resolve remaining warnings and ignore generated convex artifacts

This commit is contained in:
2026-04-03 19:41:34 +02:00
parent 0173d5c604
commit 8ed9adf6f8
5 changed files with 4 additions and 4 deletions

View File

@@ -158,7 +158,7 @@ export default function AiImageNode({
} finally { } finally {
setIsGenerating(false); setIsGenerating(false);
} }
}, [isLoading, syncStatus.isOffline, nodeData, id, getEdges, getNode, generateImage]); }, [isLoading, syncStatus.isOffline, nodeData, id, getEdges, getNode, generateImage, t]);
const modelName = const modelName =
getModel(nodeData.model ?? DEFAULT_MODEL_ID)?.name ?? "AI"; getModel(nodeData.model ?? DEFAULT_MODEL_ID)?.name ?? "AI";

View File

@@ -76,7 +76,7 @@ export default function FrameNode({ id, data, selected, width, height }: NodePro
} finally { } finally {
setIsExporting(false); setIsExporting(false);
} }
}, [exportFrame, id, isExporting, label, status.isOffline]); }, [exportFrame, id, isExporting, label, status.isOffline, t]);
const frameW = Math.round(width ?? 400); const frameW = Math.round(width ?? 400);
const frameH = Math.round(height ?? 300); const frameH = Math.round(height ?? 300);

View File

@@ -297,6 +297,7 @@ export default function PromptNode({
hasEnoughCredits, hasEnoughCredits,
router, router,
status.isOffline, status.isOffline,
t,
]); ]);
return ( return (

View File

@@ -12,6 +12,7 @@ const eslintConfig = defineConfig([
"out/**", "out/**",
"build/**", "build/**",
"next-env.d.ts", "next-env.d.ts",
"convex/_generated/**",
]), ]),
]); ]);

View File

@@ -304,8 +304,6 @@ export function classifyError(rawError: unknown): AiError {
? rawObj.message ? rawObj.message
: ""; : "";
const rawDetail = typeof rawObj?.detail === "string" ? rawObj.detail.trim() : undefined;
const prefixed = cleanPrefixMessage(rawMessage); const prefixed = cleanPrefixMessage(rawMessage);
const explicitType = const explicitType =
normalizeType(typeof rawObj?.category === "string" ? rawObj.category : undefined) ?? normalizeType(typeof rawObj?.category === "string" ? rawObj.category : undefined) ??