-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
57 lines (53 loc) · 1.25 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"compilerOptions": {
"baseUrl": "./",
"rootDirs": ["./src", "./public"],
"types": [
"node",
"vite/client",
"vitest",
"vitest/globals"
],
// Module
"incremental": true,
"target": "ESNext",
"jsx": "preserve",
"lib": ["ESNext", "DOM"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"resolveJsonModule": true,
"allowImportingTsExtensions": false,
"allowJs": false,
// Best practices
"strict": true,
"strictNullChecks": true,
"alwaysStrict": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
// Some stricter flags
"noPropertyAccessFromIndexSignature": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"useUnknownInCatchVariables": false,
// Output
"outDir": "./dist",
"declarationDir": "./types",
"noEmit": false,
"declaration": true,
"emitDeclarationOnly": true,
"sourceMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"skipLibCheck": true,
},
"include": [
"./src/**/*.ts",
"./src/**/*.d.ts",
"./public/**/*.ts",
],
"exclude": [
"./src/**/*.spec.ts",
"./src/**/__mocks__",
]
}