From f8c3189f4dac81fc66480441d90079cecfd6078d Mon Sep 17 00:00:00 2001 From: AkaraChen Date: Tue, 22 Oct 2024 11:43:23 +0800 Subject: [PATCH] build: fix eslint undef --- web/eslint.config.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs index 3406f3ddcf..efd3cac12a 100644 --- a/web/eslint.config.mjs +++ b/web/eslint.config.mjs @@ -102,7 +102,8 @@ export default combine( // orignal config rules: { // from old version of antfu/eslint-config - "no-undef": "warn", + // typescript will handle this, see https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors + "no-undef": "off", 'ts/consistent-type-definitions': ['error', 'type'], // orignal ts/no-var-requires