-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtsconfig.json
65 lines (64 loc) · 2.15 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
// {
// "compilerOptions": {
// "module": "commonjs",
// "noImplicitAny": true,
// "removeComments": true,
// "preserveConstEnums": true,
// "sourceMap": true,
// "target": "es2020",
// "lib": ["dom", "dom.iterable", "esnext"],
// "allowJs": false, // Change to false to disallow JavaScript files
// "skipLibCheck": true,
// "esModuleInterop": true,
// "allowSyntheticDefaultImports": true,
// "strict": true,
// "forceConsistentCasingInFileNames": true,
// "moduleResolution": "node",
// "resolveJsonModule": true,
// "noEmit": false,
// "jsx": "react-jsx",
// "baseUrl": "./"
// },
// "include": [
// "client/src/**/*",
// "database/**/*",
// "server/**/*",
// "path/to/file_or_directory"
// ],
// "exclude": [
// "node_modules",
// "dist"
// ]
// }
{
"compilerOptions": {
"module": "commonjs",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true,
"target": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": false, // Disallow JavaScript files
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"noEmit": false,
"jsx": "react-jsx",
"baseUrl": "./",
"noImplicitThis": true, // Raise error on 'this' expressions with an implied 'any' type
"noUnusedLocals": true, // Raise error when a local variable is unused
"noUnusedParameters": true, // Raise error when a function parameter is unused
"noFallthroughCasesInSwitch": true, // Raise error for fallthrough cases in switch statements
"strictNullChecks": true, // Strict null checks
"strictFunctionTypes": true, // Strict checking of function types
"strictBindCallApply": true, // Strict checking of bind/call/apply
"strictPropertyInitialization": true // Strict checking of property initialization
},
"include": ["client/src/**/*", "database/**/*", "server/**/*", "path/to/file_or_directory"],
"exclude": ["node_modules", "dist"]
}