-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
68 lines (68 loc) · 2.14 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
58
59
60
61
62
63
64
65
66
67
68
{
// Specify the compiler options
"compilerOptions": {
// Set the output directory to "dist"
"outDir": "./build-ts",
// Set the module system to "esnext"
"module": "ESNext",
// Set the ECMAScript target version to "ES2020"
"target": "esnext",
// Enable JSX support for React components
"jsx": "react",
// Specify the library files to include
"lib": [
"ES2020",
"dom"
],
// Enable source maps for easier debugging
"sourceMap": true,
// Allow importing modules with default exports
"allowSyntheticDefaultImports": true,
// Specify the module resolution strategy to use
"moduleResolution": "node",
// Enable importing JSON files as modules
"resolveJsonModule": true,
// Generate declaration files
"declaration": true,
// [Optional] Enable emitting declaration map files
"declarationMap": true,
// Disallow implicit "any" types
"noImplicitAny": true,
// Disallow the use of "this" without an explicit type annotation
"noImplicitThis": true,
// Require all functions to have a return statement
"noImplicitReturns": true,
// Enable strict null checks
"strictNullChecks": true,
// [Optional] Enable decorators
"experimentalDecorators": true,
// [Optional] Enable strict property initialization checks
"strictPropertyInitialization": true,
// [Optional] Enable strict function types
"strictFunctionTypes": true,
// [Optional] Enable no unused variables check
"noUnusedLocals": false,
// [Optional] Enable no unused parameters check
"noUnusedParameters": true,
// Enable @types in src folder.
"baseUrl": "./",
"plugins": [{ "name": "typescript-plugin-css-modules" }],
},
"ts-node": {
"files": true,
"transpileOnly": true,
"compilerOptions": {
"baseUrl": "./",
"module": "ESNext",
"moduleResolution": "node"
}
},
"typedocOptions": {
"entryPoints": ["./src"],
"entryPointStrategy": "expand",
"out": "public/docs"
},
// Specify the files and directories to include in compilation
"include": ["src/**/*.tsx", "src/**/*.ts"],
"exclude": ["node_modules"]
}