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

+4 -1
View File
@@ -2,12 +2,13 @@ import {
DEFAULT_TTS_CONFIG,
DEFAULT_KEYBOARD_SHORTCUTS,
DEFAULT_USER_PREFERENCES,
DEFAULT_LEADER_KEY,
type TTSConfig,
type OpenCodeConfigContent,
} from '@opencode-manager/shared'
export type { TTSConfig, OpenCodeConfigContent }
export { DEFAULT_TTS_CONFIG, DEFAULT_KEYBOARD_SHORTCUTS, DEFAULT_USER_PREFERENCES }
export { DEFAULT_TTS_CONFIG, DEFAULT_KEYBOARD_SHORTCUTS, DEFAULT_USER_PREFERENCES, DEFAULT_LEADER_KEY }
export interface CustomCommand {
name: string
@@ -42,6 +43,8 @@ export interface UserPreferences {
showReasoning: boolean
expandToolCalls: boolean
expandDiffs: boolean
leaderKey?: string
directShortcuts?: string[]
keyboardShortcuts: Record<string, string>
customCommands: CustomCommand[]
customAgents: CustomAgent[]