From c46d4d367eeaad5346d1f39914d8ecb68de38fb8 Mon Sep 17 00:00:00 2001 From: litruv Date: Sun, 1 Nov 2026 05:48:37 +1100 Subject: [PATCH] Turn off no-undef for the TS files too. [skip build] --- eslint.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' } }, ];