Skip to content

Commit

Permalink
feat: improve no-unused-vars rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ASafaeirad committed Oct 19, 2024
1 parent 9d9effe commit 9c3e4f5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/modules/typescript.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,15 @@ function typescript(options = {}) {
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^([iI]gnore(d)?)|(_+)', args: 'after-used', ignoreRestSiblings: true },
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^([iI]gnore(d)?)|(_+)',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
args: 'after-used',
caughtErrors: 'all',
ignoreRestSiblings: true,
},
],
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: true }],
'@typescript-eslint/no-useless-constructor': 'error',
Expand Down

0 comments on commit 9c3e4f5

Please sign in to comment.