Skip to content

Commit bbecb22

Browse files
committed
Ignore catch errors when they start with underscore.
1 parent 9ebc11d commit bbecb22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ export default ts.config(
6666
'@typescript-eslint/no-unused-vars': [
6767
'error',
6868
{
69-
varsIgnorePattern: '_',
70-
argsIgnorePattern: '_',
69+
varsIgnorePattern: '^_',
70+
argsIgnorePattern: '^_',
71+
caughtErrorsIgnorePattern: '^_',
7172
},
7273
],
7374
'prefer-const': 'off',

0 commit comments

Comments
 (0)