eslint for handlers
This commit is contained in:
parent
ce5fa9da4a
commit
bbb551ddc7
1 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
{
|
||||
files: ['**/*.test.ts', '**/*.spec.ts', '**/test/**/*', '**/tests/**/*'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue