From a7760335cb4c51d985ffbcc98fab520e4ebe6546 Mon Sep 17 00:00:00 2001 From: Claude Fable 5 Date: Sun, 12 Jul 2026 20:45:29 +0200 Subject: [PATCH] Remove an unused eslint-disable directive in main.ts no-console is not enforced for apps/api, so the directive on the boot-time restore-wait log line was flagged as unused and failed the lint gate (--report-unused-disable-directives). Keep the console.log and its rationale as a plain comment. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01EwZ4jR4KFAPvpjWevfUGX1 --- apps/api/src/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index 6c1ae6b..d2fd188 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -47,7 +47,8 @@ async function waitWhileRestoreRuns(backupsDir: string): Promise { if (!status || status.state !== 'running') return; const ageMinutes = (Date.now() - new Date(status.startedAt).getTime()) / 60_000; if (!Number.isFinite(ageMinutes) || ageMinutes > RESTORE_STALE_MAX_AGE_MINUTES) return; - // eslint-disable-next-line no-console -- the pino logger does not exist yet + // The pino logger does not exist yet at this point in boot, so this one + // status line goes to the console directly (no-console is not enforced here). console.log(`restore of ${status.backupId} is running — waiting before touching the database`); await sleep(2000); }