From 6f110834ffb85456d36c2a3cb3761da9e85baf8c Mon Sep 17 00:00:00 2001 From: kj Date: Fri, 17 Jul 2026 18:45:08 -0500 Subject: [PATCH] chore: relax noUnusedLocals/noUnusedParameters in vite starters Unused-local/param (TS6133/TS6196) is the single most common build failure in agent-generated projects. It's a harmless warning-class error that shouldn't break the build, so disable both checks in the vite react and shadcn starter tsconfigs (bolt-slides is already relaxed). Co-Authored-By: Claude Opus 4.8 (1M context) --- bolt-vite-react-ts/tsconfig.app.json | 4 ++-- bolt-vite-react-ts/tsconfig.node.json | 4 ++-- vite-shadcn/tsconfig.app.json | 4 ++-- vite-shadcn/tsconfig.node.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bolt-vite-react-ts/tsconfig.app.json b/bolt-vite-react-ts/tsconfig.app.json index f0a23505..c15dbd60 100644 --- a/bolt-vite-react-ts/tsconfig.app.json +++ b/bolt-vite-react-ts/tsconfig.app.json @@ -16,8 +16,8 @@ /* Linting */ "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "noFallthroughCasesInSwitch": true }, "include": ["src"] diff --git a/bolt-vite-react-ts/tsconfig.node.json b/bolt-vite-react-ts/tsconfig.node.json index 0d3d7144..3133162c 100644 --- a/bolt-vite-react-ts/tsconfig.node.json +++ b/bolt-vite-react-ts/tsconfig.node.json @@ -14,8 +14,8 @@ /* Linting */ "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "noFallthroughCasesInSwitch": true }, "include": ["vite.config.ts"] diff --git a/vite-shadcn/tsconfig.app.json b/vite-shadcn/tsconfig.app.json index 66c85c58..5031f7a6 100644 --- a/vite-shadcn/tsconfig.app.json +++ b/vite-shadcn/tsconfig.app.json @@ -16,8 +16,8 @@ /* Linting */ "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "noFallthroughCasesInSwitch": true, /* for ShadCN */ diff --git a/vite-shadcn/tsconfig.node.json b/vite-shadcn/tsconfig.node.json index 0d3d7144..3133162c 100644 --- a/vite-shadcn/tsconfig.node.json +++ b/vite-shadcn/tsconfig.node.json @@ -14,8 +14,8 @@ /* Linting */ "strict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedLocals": false, + "noUnusedParameters": false, "noFallthroughCasesInSwitch": true }, "include": ["vite.config.ts"]