From 831ce01150865d1d4df4d33ca1a18dce4ecae3dd Mon Sep 17 00:00:00 2001 From: litruv Date: Sun, 1 Nov 2026 07:02:36 +1100 Subject: [PATCH] Turn off the base unused-vars rule for the TS files. [skip build] --- eslint.config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 31761c13..487d3440 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -95,6 +95,10 @@ export default [ })), ), // Type-only references (React.DragEvent, PermissionState) are not runtime globals, so no-undef - // has to be off for the TS files too, not just *.ts. - { files: ['**/*.ts', '**/*.tsx'], rules: { 'no-undef': 'off' } }, + // has to be off for the TS files too, not just *.ts. The base no-unused-vars also double-fires on + // type-signature params and enum members, which @typescript-eslint/no-unused-vars handles instead. + { + files: ['**/*.ts', '**/*.tsx'], + rules: { 'no-undef': 'off', 'no-unused-vars': 'off' }, + }, ];