Skip to content

Commit 60ffbf0

Browse files
ericyangpanclaude
andcommitted
chore(config): enable strict TypeScript checking options
- Enable noUncheckedIndexedAccess for safer array/object access - Add noImplicitOverride, noImplicitReturns for stricter checks - Configure noUnusedLocals and noUnusedParameters - Enable verbatimModuleSyntax for better import handling - Add removeComments for optimized output - Organize includes to reference cloudflare-env.d.ts explicitly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b263c19 commit 60ffbf0

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

tsconfig.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,30 @@
2222
"@/*": ["./src/*"],
2323
"@content/*": ["./content/*"]
2424
},
25-
"types": ["./cloudflare-env.d.ts", "node"]
25+
"types": ["node"],
26+
27+
// Strict type checking
28+
"noUncheckedIndexedAccess": true,
29+
"noImplicitOverride": true,
30+
"allowUnusedLabels": false,
31+
"allowUnreachableCode": false,
32+
"noFallthroughCasesInSwitch": true,
33+
"noImplicitReturns": true,
34+
"noUnusedLocals": true,
35+
"noUnusedParameters": true,
36+
"forceConsistentCasingInFileNames": true,
37+
38+
// Output optimization
39+
"removeComments": true,
40+
"verbatimModuleSyntax": true
2641
},
27-
"include": ["next-env.d.ts", "mdx.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
42+
"include": [
43+
"next-env.d.ts",
44+
"mdx.d.ts",
45+
"cloudflare-env.d.ts",
46+
"**/*.ts",
47+
"**/*.tsx",
48+
".next/types/**/*.ts"
49+
],
2850
"exclude": ["node_modules"]
2951
}

0 commit comments

Comments
 (0)