Files
botfights/eslint.config.js
T
DorianandClaude Opus 4.6 57af4e6a25 fix: exclude config files from eslint project service parsing
Ignore vite.config.ts, drizzle.config.ts, and server/scripts/ from
lint — these are standalone config/script files not included in any
tsconfig project. Lint now passes with 0 errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 08:55:26 +00:00

32 lines
857 B
JavaScript

import tseslint from '@typescript-eslint/eslint-plugin'
import tsparser from '@typescript-eslint/parser'
export default [
{
ignores: ['**/dist/**', '**/node_modules/**', '**/*.js', '**/*.mjs', '**/*.cjs', '**/*.vue', '**/vite.config.ts', '**/drizzle.config.ts', 'server/scripts/**'],
},
{
files: ['**/*.ts'],
languageOptions: {
parser: tsparser,
parserOptions: {
projectService: true,
},
},
plugins: {
'@typescript-eslint': tseslint,
},
rules: {
'@typescript-eslint/no-floating-promises': 'error',
'no-console': ['warn', { allow: ['warn', 'error'] }],
},
},
// Frontend game engine: fire-and-forget async (audio, animations) is intentional
{
files: ['frontend/src/game/**/*.ts'],
rules: {
'@typescript-eslint/no-floating-promises': 'warn',
},
},
]