add linting

This commit is contained in:
Paul Carleton 2025-10-30 13:06:52 +00:00
commit ae9451f5e0
No known key found for this signature in database

20
eslint.config.mjs Normal file
View file

@ -0,0 +1,20 @@
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintConfigPrettier from 'eslint-config-prettier/flat';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
linterOptions: {
reportUnusedDisableDirectives: false
},
rules: {
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-explicit-any': 'off'
}
},
eslintConfigPrettier
);