-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
32 lines (28 loc) · 1.22 KB
/
Copy pathtsconfig.json
File metadata and controls
32 lines (28 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
// tsconfig.json tells TypeScript HOW to check your code.
// Vite/esbuild does the actual compiling — tsc here is only a type-checker.
"compilerOptions": {
/* Language target */
"target": "ES2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"], // DOM = browser APIs (fetch, document...)
"useDefineForClassFields": true,
/* Modules — let Vite handle bundling */
"module": "ESNext",
"moduleResolution": "bundler",
"allowJs": true, // let .jsx and .tsx coexist during the migration
"isolatedModules": true, // required because esbuild compiles one file at a time
"verbatimModuleSyntax": true, // forces `import type {...}` for type-only imports
"moduleDetection": "force",
"noEmit": true, // tsc never writes files — it only reports type errors
/* React */
"jsx": "react-jsx", // new JSX transform: no need to `import React`
/* The whole reason we're doing this */
"strict": true, // turns on every strict type check at once
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true,
"skipLibCheck": true // don't type-check node_modules — just trust them
},
"include": ["src"]
}