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' }, + }, ];