-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
41 lines (39 loc) · 2.67 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
{
"compilerOptions": {
"lib": [
"esnext" // Include latest ES library during compilation
],
"declaration": true, // Emit definitions file upon compilation
"incremental": true, // Enable incremental compilation
"inlineSourceMap": true, // Emit single file with source map
"inlineSources": true, // Emit source alongside source map
"module": "commonjs", // Enforce Node.js standard module code generation
"moduleResolution": "node", // Enforce Node.js standard module resolution strategy
"outDir": "build", // Specify output structure directory
"removeComments": true, // Do not emit comments during compilation
"rootDir": "packages", // Specify input file root directory
"target": "es2019", // Target ES2019 during compilation for node@12 compatibility
"tsBuildInfoFile": ".cache/.tsbuildinfo", // Target file for incremental build information
// "jsx": "react", // Support JSX in .tsx files
"alwaysStrict": true, // Emit "use Strict" for each source file
"esModuleInterop": true, // Enable implicit default imports/exports
"experimentalDecorators": true, // Enable ES7 decorators
"noImplicitAny": true, // Prohibit expressions with implied any type
"noImplicitReturns": true, // Enforce function return statements for all code paths
"noImplicitThis": true, // Prohibit 'this' expressions with implied any type
"noUnusedLocals": true, // Prohibit unused variables declarations
"noUnusedParameters": true, // Prohibit unused function parameters
"preserveConstEnums": true, // Retain const enum declarations
"strictFunctionTypes": true, // Prohibit bi-variant function parameter checking
"strictNullChecks": true, // Null/Undefined only assignable to themselves, void and any
"strictPropertyInitialization": true // Ensure defined class properties initialized in constructor
},
"exclude": [
"build", // Do not compile compiled files
"lib", // Do not compile compiled files
"node_modules", // Do not compile dependencies
],
"include": [
"./packages/**/*.ts" // Compile all source code .ts files
]
}