Fix eslint (#46)

* Fix mobile image upload and paste with improved file type handling

* Replace older sessions header with separator line

* Add ESLint no-console rules and fix lint errors

- Add eslint configuration for backend with no-console rule
- Add reusable error type guard utility
- Replace all error: any with error: unknown and type guards across backend
- Update logger to use console.warn/console.error only
- Remove unused variables and dead code functions
- Fix regex escape characters
- Update AGENTS.md with lint commands and requirements
This commit is contained in:
Chris Scott authored and GitHub committed 2026-01-03 15:19:28 -05:00
1 parent c9bf962ac0
commit 8166044d6e
23 files changed
+642 -334

No files matched your search

@@ -190,10 +190,9 @@ class OpenCodeServerManager {
await new Promise(r => setTimeout(r, 2000))
try {
process.kill(this.serverPid, 0)
process.kill(this.serverPid, 'SIGKILL')
} catch {
} catch (error) {
logger.warn(`Failed to send SIGKILL to ${this.serverPid}:`, error)
}
this.serverPid = null