diff --git a/src/eslint/index.ts b/src/eslint/index.ts index 5ba2261..728f15c 100644 --- a/src/eslint/index.ts +++ b/src/eslint/index.ts @@ -69,7 +69,18 @@ export const eslint = { 'no-param-reassign': ['warn'], 'simple-import-sort/exports': 'warn', '@typescript-eslint/no-unused-expressions': 'warn', - '@typescript-eslint/no-unused-vars': 'warn', + '@typescript-eslint/no-unused-vars': [ + 'warn', + { + args: 'all', + argsIgnorePattern: '^_', + caughtErrors: 'all', + caughtErrorsIgnorePattern: '^_', + destructuredArrayIgnorePattern: '^_', + varsIgnorePattern: '^_', + ignoreRestSiblings: true, + }, + ], '@typescript-eslint/no-use-before-define': 'warn', '@typescript-eslint/no-empty-interface': 'warn', 'array-callback-return': 'warn', @@ -140,6 +151,7 @@ export const eslint = { 'no-undef': 'off', 'no-unused-expressions': 'off', 'no-shadow': 'off', + 'no-use-before-define': 'off', }, }, ],