From e4bc5b47bea93ee8fbdd4d449c428e91604c2ad8 Mon Sep 17 00:00:00 2001 From: sjfhsjfh Date: Thu, 27 Nov 2025 17:57:14 +0800 Subject: [PATCH] =?UTF-8?q?chore(lint):=20=E5=85=81=E8=AE=B8=E5=9C=A8=20sr?= =?UTF-8?q?c/env.d.ts=20=E4=BD=BF=E7=94=A8=20triple-slash=20=E5=BC=95?= =?UTF-8?q?=E7=94=A8=20.astro/types=EF=BC=9B=E9=81=BF=E5=85=8D=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=80=80=E5=8C=96=E4=B8=8E=20IDE=20=E8=AF=AF=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.js | 8 ++++++++ tsconfig.json | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index af30867..1e142d0 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -62,6 +62,14 @@ export default [ } }, + // Allow triple-slash reference in env.d.ts for Astro types + { + files: ['src/env.d.ts'], + rules: { + '@typescript-eslint/triple-slash-reference': 'off' + } + }, + // Ignores { ignores: ['dist', 'node_modules', 'eslint.config.js', '.astro', 'astro.config.*', 'ref/**'] } ]; diff --git a/tsconfig.json b/tsconfig.json index b7aa869..2bfcc46 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,6 @@ }, "include": [ "src", - "env.d.ts", "astro.config.mjs", ".astro/types.d.ts" ],