-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
35 lines (31 loc) · 918 Bytes
/
tsconfig.json
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
33
34
35
{
"compilerOptions": {
// enable latest features
"lib": ["esnext", "dom"],
"module": "NodeNext",
"target": "ESNext",
"moduleResolution": "NodeNext",
"noEmit": true,
"moduleDetection": "force",
"jsx": "react", // support JSX
"jsxFactory": "v",
"jsxFragmentFactory": "v.fragment",
"allowJs": true, // allow importing `.js` from `.ts`
"esModuleInterop": true, // allow default imports for CommonJS modules
// best practices
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"composite": true,
"downlevelIteration": true,
"allowSyntheticDefaultImports": true,
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"rootDir": "./",
"paths": {
"node_modules/*": ["./node_modules/*"]
}
},
"include": ["./", "./lib", "./test"],
"exclude": ["./lib/node/utils/node.sw.js"]
}