Skip to content

Commit

Permalink
fix: change no-unused-vars options
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotzpc committed Jul 24, 2024
1 parent 19ef49e commit 7a206d4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/eslint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -140,6 +151,7 @@ export const eslint = {
'no-undef': 'off',
'no-unused-expressions': 'off',
'no-shadow': 'off',
'no-use-before-define': 'off',
},
},
],
Expand Down

0 comments on commit 7a206d4

Please sign in to comment.