Skip to content

Commit 76701fb

Browse files
committed
Fix ESLint no-unused-vars for destructured rest siblings
Add ignoreRestSiblings to @typescript-eslint/no-unused-vars so the omit-via-destructuring pattern in endpoint files is allowed.
1 parent 2be69fa commit 76701fb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ export default tseslint.config(
99
},
1010
{
1111
rules: {
12-
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
12+
'@typescript-eslint/no-unused-vars': [
13+
'error',
14+
{ argsIgnorePattern: '^_', ignoreRestSiblings: true },
15+
],
1316
},
1417
},
1518
);

0 commit comments

Comments
 (0)