refactor: enforce strict linting rules, replace forEach with for...of loops, and remove console logging throughout the frontend.

This commit is contained in:
ramvignesh-b
2026-04-13 14:30:17 +05:30
parent 2776aac69a
commit 12763ab7ab
12 changed files with 38 additions and 37 deletions
+3 -7
View File
@@ -79,8 +79,7 @@ export default function Editor() {
requestAnimationFrame(() => {
canvasRef.current?.loadData(canvasData);
});
} catch (err) {
console.error("Failed to load existing letter:", err);
} catch (_err) {
} finally {
setIsInitialLoading(false);
}
@@ -158,8 +157,7 @@ export default function Editor() {
}
setTimeout(() => setIsSaveSuccess(false), 5000);
} catch (error) {
console.error("Save failed:", error);
} catch (_error) {
} finally {
setIsSealing(false);
}
@@ -169,9 +167,7 @@ export default function Editor() {
if (!shareLink) return;
try {
await navigator.clipboard.writeText(shareLink);
} catch (err) {
console.error("Failed to copy:", err);
}
} catch (_err) {}
};
return (