chore(lint): resolve remaining warnings and ignore generated convex artifacts
This commit is contained in:
@@ -158,7 +158,7 @@ export default function AiImageNode({
|
||||
} finally {
|
||||
setIsGenerating(false);
|
||||
}
|
||||
}, [isLoading, syncStatus.isOffline, nodeData, id, getEdges, getNode, generateImage]);
|
||||
}, [isLoading, syncStatus.isOffline, nodeData, id, getEdges, getNode, generateImage, t]);
|
||||
|
||||
const modelName =
|
||||
getModel(nodeData.model ?? DEFAULT_MODEL_ID)?.name ?? "AI";
|
||||
|
||||
@@ -76,7 +76,7 @@ export default function FrameNode({ id, data, selected, width, height }: NodePro
|
||||
} finally {
|
||||
setIsExporting(false);
|
||||
}
|
||||
}, [exportFrame, id, isExporting, label, status.isOffline]);
|
||||
}, [exportFrame, id, isExporting, label, status.isOffline, t]);
|
||||
|
||||
const frameW = Math.round(width ?? 400);
|
||||
const frameH = Math.round(height ?? 300);
|
||||
|
||||
@@ -297,6 +297,7 @@ export default function PromptNode({
|
||||
hasEnoughCredits,
|
||||
router,
|
||||
status.isOffline,
|
||||
t,
|
||||
]);
|
||||
|
||||
return (
|
||||
|
||||
@@ -12,6 +12,7 @@ const eslintConfig = defineConfig([
|
||||
"out/**",
|
||||
"build/**",
|
||||
"next-env.d.ts",
|
||||
"convex/_generated/**",
|
||||
]),
|
||||
]);
|
||||
|
||||
|
||||
@@ -304,8 +304,6 @@ export function classifyError(rawError: unknown): AiError {
|
||||
? rawObj.message
|
||||
: "";
|
||||
|
||||
const rawDetail = typeof rawObj?.detail === "string" ? rawObj.detail.trim() : undefined;
|
||||
|
||||
const prefixed = cleanPrefixMessage(rawMessage);
|
||||
const explicitType =
|
||||
normalizeType(typeof rawObj?.category === "string" ? rawObj.category : undefined) ??
|
||||
|
||||
Reference in New Issue
Block a user