mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
31 lines
794 B
JavaScript
31 lines
794 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': 'warn',
|
|
'no-useless-escape': 'warn',
|
|
},
|
|
},
|
|
]) |