Files
opencode-manager/backend/eslint.config.js
Chris Scott 9afd5f04d5 feat: add dev-server preview system with proxy, file serving, and HTML artifact preview
Adds a full dev-server preview system including:
- Backend proxy/upgrade handler for dev server traffic
- File-serving backend route with CSP headers
- DevServerPreviewButton and HtmlArtifactPanel components
- HTML artifact detection and preview in messages
- File preview improvements with mobile support
- Shared types and settings schema for dev server config
- Comprehensive test coverage for all new code
2026-06-21 14:37:53 -04:00

38 lines
960 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'] }],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': 'error',
'no-useless-escape': 'warn',
'no-empty': ['error', { allowEmptyCatch: true }],
},
},
{
files: ['test/**/*.ts'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
])