Skip to content

Commit b6583d1

Browse files
committed
chore: detect typescript no-unused-vars lint rule
1 parent c6eaae0 commit b6583d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

eslint.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export default pluginTypeScriptESLint.config(
5656
},
5757
rules: {
5858
eqeqeq: 'error',
59+
'no-unused-vars': 'off',
5960
'no-underscore-dangle': 'warn',
6061
'no-case-declarations': 'off',
6162
'no-trailing-spaces': 'error',
@@ -85,6 +86,14 @@ export default pluginTypeScriptESLint.config(
8586
'jsx-a11y/no-noninteractive-element-interactions': 0,
8687
'jsx-a11y/click-events-have-key-events': 0,
8788
'jsx-a11y/no-static-element-interactions': 0,
89+
'@typescript-eslint/no-unused-vars': [
90+
'error',
91+
{
92+
argsIgnorePattern: '^_',
93+
varsIgnorePattern: '^_',
94+
caughtErrorsIgnorePattern: '^_',
95+
},
96+
],
8897
'@typescript-eslint/no-explicit-any': 'off',
8998
},
9099
},

0 commit comments

Comments
 (0)