From faebb51d90a1039f40030ef993b5a648e46d20ed Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sat, 19 Sep 2026 19:28:33 +0700 Subject: [PATCH] chore: enforce zero-warning toolchain - Enable noUnusedLocals/noUnusedParameters in tsconfig (unused code = error) - Remove unused React import in scroll-area (caught by strict unused checks) - Pin NODE_ENV=development for dev script (box shell leaks NODE_ENV=production, which made next dev emit a non-standard-env warning) --- components/ui/scroll-area.tsx | 1 - package.json | 2 +- tsconfig.json | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/ui/scroll-area.tsx b/components/ui/scroll-area.tsx index 7b80e6e..9214ba6 100644 --- a/components/ui/scroll-area.tsx +++ b/components/ui/scroll-area.tsx @@ -1,6 +1,5 @@ "use client"; -import * as React from "react"; import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area"; import { cn } from "cn"; diff --git a/package.json b/package.json index 2ea9351..5435f85 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev", + "dev": "NODE_ENV=development next dev", "build": "next build", "start": "next start", "lint": "eslint", diff --git a/tsconfig.json b/tsconfig.json index 4122f4c..1c69c16 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,8 @@ "allowJs": true, "skipLibCheck": true, "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, "noEmit": true, "esModuleInterop": true, "module": "esnext",