eslint for handlers

This commit is contained in:
Boki 2025-06-23 22:34:58 -04:00
parent ce5fa9da4a
commit bbb551ddc7

View file

@ -66,6 +66,22 @@ export default [
}, },
}, },
// Handler files configuration
{
files: ['**/*.handler.ts'],
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_|Handler$', // Ignore classes ending with Handler
destructuredArrayIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
},
// Test files configuration // Test files configuration
{ {
files: ['**/*.test.ts', '**/*.spec.ts', '**/test/**/*', '**/tests/**/*'], files: ['**/*.test.ts', '**/*.spec.ts', '**/test/**/*', '**/tests/**/*'],