From 385670125216ff62354ed614e341acf1f1d8edf1 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Tue, 5 May 2026 10:02:33 +0200 Subject: [PATCH] fix(lint): exempt next-env.d.ts triple-slash + declare globalEnv vars next-env.d.ts is a generated file using triple-slash references that TypeScript requires. ESLint exemption added in apps/web-next config only. Also declare CI, DATABASE_URL, PAYLOAD_SECRET, NODE_ENV in turbo.json globalEnv so turbo/no-undeclared-env-vars stops warning. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web-next/eslint.config.js | 10 +++++++++- turbo.json | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/web-next/eslint.config.js b/apps/web-next/eslint.config.js index 35479e2..6b076ed 100644 --- a/apps/web-next/eslint.config.js +++ b/apps/web-next/eslint.config.js @@ -1,3 +1,11 @@ import baseConfig from "@repo/eslint-config/base"; -export default baseConfig; +export default [ + ...baseConfig, + { + files: ["next-env.d.ts"], + rules: { + "@typescript-eslint/triple-slash-reference": "off", + }, + }, +]; diff --git a/turbo.json b/turbo.json index 4acfc80..038e136 100644 --- a/turbo.json +++ b/turbo.json @@ -1,5 +1,6 @@ { "$schema": "https://turborepo.dev/schema.json", + "globalEnv": ["CI", "DATABASE_URL", "PAYLOAD_SECRET", "NODE_ENV"], "tasks": { "build": { "dependsOn": ["^build"],