Add client ESLint flat config and pass lint

This commit is contained in:
Jage9
2026-02-20 16:51:29 -05:00
parent 74c4c9e91c
commit 6a2eb36b71
2 changed files with 31 additions and 1 deletions

31
client/eslint.config.js Normal file
View File

@@ -0,0 +1,31 @@
import tsParser from '@typescript-eslint/parser';
import tsPlugin from '@typescript-eslint/eslint-plugin';
export default [
{
ignores: ['dist/**', 'node_modules/**'],
},
{
files: ['src/**/*.ts'],
languageOptions: {
parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: {
'@typescript-eslint': tsPlugin,
},
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
},
];

View File

@@ -21,7 +21,6 @@ import {
getDirection, getDirection,
getNearestItem, getNearestItem,
getNearestPeer, getNearestPeer,
type GameState,
type ItemType, type ItemType,
type WorldItem, type WorldItem,
} from './state/gameState'; } from './state/gameState';