tsconfig.json
Raw
1{
2 "compilerOptions": {
3 // Environment setup & latest features
4 "lib": ["ESNext"],
5 "target": "ESNext",
6 "module": "Preserve",
7 "moduleDetection": "force",
8 "jsx": "react-jsx",
9 "jsxImportSource": "@kitajs/html",
10 "plugins": [{ "name": "@kitajs/ts-html-plugin" }],
11 "allowJs": true,
12
13 // Bundler mode
14 "moduleResolution": "bundler",
15 "allowImportingTsExtensions": true,
16 "verbatimModuleSyntax": true,
17 "noEmit": true,
18
19 // Best practices
20 "strict": true,
21 "skipLibCheck": true,
22 "noFallthroughCasesInSwitch": true,
23 "noUncheckedIndexedAccess": true,
24 "noImplicitOverride": true,
25
26 // Some stricter flags (disabled by default)
27 "noUnusedLocals": false,
28 "noUnusedParameters": false,
29 "noPropertyAccessFromIndexSignature": false
30 }
31}
32