forked from vitejs/vite-plugin-react-swc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
27 lines (24 loc) · 753 Bytes
/
tsconfig.json
File metadata and controls
27 lines (24 loc) · 753 Bytes
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
{
"include": ["src", "scripts", "playground/*/__tests__"],
"compilerOptions": {
/* Target node 14 */
"module": "ES2020",
"lib": ["ES2020", "dom"],
"target": "ES2020",
"skipLibCheck": true,
/* Transpile with esbuild */
"noEmit": true,
"isolatedModules": true,
/* Imports */
"moduleResolution": "node", // Allow `index` imports
"resolveJsonModule": true, // Allow json import
"forceConsistentCasingInFileNames": true, // Avoid difference in case between file name and import
"allowSyntheticDefaultImports": true,
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"useUnknownInCatchVariables": true
}
}