From 10f44002e22ca10f3e5e504c838a950184cb41a0 Mon Sep 17 00:00:00 2001 From: amankumarsingh77 Date: Sat, 2 May 2026 15:39:06 +0530 Subject: build: enable strict tsconfig flags for new code, keep legacy lenient --- tsconfig.json | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'tsconfig.json') diff --git a/tsconfig.json b/tsconfig.json index fb27021..0dfa85a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,15 +4,31 @@ "module": "ESNext", "moduleResolution": "bundler", "strict": true, + "noImplicitAny": true, + "strictNullChecks": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedIndexedAccess": true, + "exactOptionalPropertyTypes": true, + "noPropertyAccessFromIndexSignature": true, + "forceConsistentCasingInFileNames": true, "esModuleInterop": true, "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, "outDir": "./dist", "rootDir": "./src", "declaration": true, "declarationMap": true, "sourceMap": true }, - "include": ["src/**/*.ts"], + "include": [ + "src/util/**/*.ts", + "src/cdp/**/*.ts", + "src/client.ts", + "src/domains/**/*.ts", + "src/schemas/**/*.ts", + "src/registry.ts" + ], "exclude": ["node_modules", "dist"] } -- cgit v1.2.3