mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
* 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
28 lines
656 B
JavaScript
28 lines
656 B
JavaScript
import js from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
|
|
export default defineConfig([
|
|
globalIgnores(['dist', '.env*', 'coverage', 'src/utils/logger.ts']),
|
|
{
|
|
files: ['**/*.ts'],
|
|
extends: [
|
|
js.configs.recommended,
|
|
tseslint.configs.recommended,
|
|
],
|
|
languageOptions: {
|
|
ecmaVersion: 2022,
|
|
globals: {
|
|
process: 'readonly',
|
|
Buffer: 'readonly',
|
|
console: 'readonly',
|
|
},
|
|
parserOptions: {
|
|
project: true,
|
|
},
|
|
},
|
|
rules: {
|
|
'no-console': ['warn', { allow: ['warn', 'error'] }],
|
|
},
|
|
},
|
|
]) |