mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
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:
1 parent
c9bf962ac0
commit
8166044d6e
23 files changed
+642
-334
No files matched your search
@@ -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[]
|
||||
|
||||
Reference in new issue
Block a user