Add client ESLint flat config and pass lint
This commit is contained in:
31
client/eslint.config.js
Normal file
31
client/eslint.config.js
Normal 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: '^_',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
];
|
||||
@@ -21,7 +21,6 @@ import {
|
||||
getDirection,
|
||||
getNearestItem,
|
||||
getNearestPeer,
|
||||
type GameState,
|
||||
type ItemType,
|
||||
type WorldItem,
|
||||
} from './state/gameState';
|
||||
|
||||
Reference in New Issue
Block a user