-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
82 lines (62 loc) · 1.97 KB
/
tsconfig.base.json
File metadata and controls
82 lines (62 loc) · 1.97 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
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Base TypeScript Configuration",
"compilerOptions": {
/**
* Imports
*/
// Enables default imports from CommonJS modules (interop compatibility)
"esModuleInterop": true,
// Allows `import x from 'cjs-module'` even without a true default export
"allowSyntheticDefaultImports": true,
// Requires explicit `type` modifier for type-only imports/exports
"verbatimModuleSyntax": true,
// Enables importing `.json` files as modules
"resolveJsonModule": true,
// Allows JavaScript files to be included in the project
"allowJs": true,
// Ensures consistent casing of imports
"forceConsistentCasingInFileNames": true,
/**
* Strictness
*/
// Skips type checking for `.d.ts` files in `node_modules`
"skipLibCheck": true,
// Enables all strict type checks
"strict": true,
// Adds `| undefined` to indexed access types
"noUncheckedIndexedAccess": true,
// Requires `override` keyword when overriding base class methods
"noImplicitOverride": true,
// Ensures all function paths return a value
"noImplicitReturns": true,
// Prevents fall-through between `switch` cases
"noFallthroughCasesInSwitch": true,
/**
* Compilation
*/
// Enables isolated modules
"isolatedModules": true,
/**
* Directories
*/
// Specifies the output directory for compiled files
"outDir": "${configDir}/dist",
// Specifies the root directory of input files
"rootDir": "${configDir}/src",
// Specifies the base directory to resolve non-relative module names
"baseUrl": "${configDir}",
// Specifies the directory for type definitions
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["${configDir}/src"],
"exclude": [
"${configDir}/node_modules",
"${configDir}/dist",
"${configDir}/coverage",
"${configDir}/html",
"${configDir}/typedoc"
]
}