From 80673b1fcd859dab48610b1107fd23b945b7825d Mon Sep 17 00:00:00 2001 From: GerkinDev Date: Fri, 30 Jul 2021 13:43:05 +0200 Subject: [PATCH] fix(typescript): ignore unused rest in destructuring --- src/config-fragments/plugins/typescript-eslint.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config-fragments/plugins/typescript-eslint.ts b/src/config-fragments/plugins/typescript-eslint.ts index 628dea8..d781ac7 100644 --- a/src/config-fragments/plugins/typescript-eslint.ts +++ b/src/config-fragments/plugins/typescript-eslint.ts @@ -51,7 +51,7 @@ export = { 'error', { default: [ - // Index signature + // Index signature 'signature', // Static fields @@ -138,6 +138,7 @@ export = { argsIgnorePattern: '^_', caughtErrors: 'all', caughtErrorsIgnorePattern: '^_', + ignoreRestSiblings: true, }, ], '@typescript-eslint/no-use-before-define': 'off',