diff --git a/eslint.config.js b/eslint.config.js index b8c95dac..31761c13 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -94,5 +94,7 @@ export default [ ...(config.settings ? { settings: config.settings } : {}), })), ), - { files: ['*.ts'], rules: { 'no-undef': 'off' } }, + // 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' } }, ];