forked from nightwaveplaza/plaza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
90 lines (85 loc) · 2.83 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"compilerOptions": {
/* Base options */
"baseUrl": "./",
// Specifies the base directory for resolving module names.
"esModuleInterop": true,
// Enables compatibility with CommonJS and AMD modules.
"forceConsistentCasingInFileNames": true,
// Enforces consistent casing of file names.
"skipLibCheck": true,
// Skips type checking of declaration files.
"target": "es2022",
// Sets the ECMAScript target version for the compiled JavaScript.
"verbatimModuleSyntax": true,
// Treats all module files as written in ECMAScript modules.
"allowJs": true,
// Allows JavaScript files to be included in the TypeScript project.
"resolveJsonModule": true,
// Allows importing JSON files as modules.
"moduleDetection": "force",
// Forces TypeScript to always assume modules are present.
"allowImportingTsExtensions": true,
// Allows importing TypeScript files with `.ts` extension.
"isolatedModules": true,
// Enforces stricter module boundaries by treating each file as a separate module.
"useDefineForClassFields": true,
// Allows initializing class fields directly within the class body without a constructor.
"paths": {
"@app/*": [
"./src/app/*"
],
"@mobile/*": [
"./src/mobile/*"
],
"@locales/*": [
"./src/locales/*"
]
},
/* Linting */
"noUnusedLocals": true,
// Reports unused local variables as errors.
"noUnusedParameters": true,
// Reports unused function parameters as errors.
"noFallthroughCasesInSwitch": true,
// Reports missing `break` statements in `switch` cases as errors.
/* Strictness */
"strict": true,
// Enables all strict type checking options.
"noUncheckedIndexedAccess": true,
// Checks that indexed accesses are not possibly undefined or null.
/* If transpiling with TypeScript */
// "moduleResolution": "NodeNext", // Resolves module names using the Node.js resolution algorithm.
// "module": "NodeNext", // Sets the module code generation to Node.js-compatible modules.
/* If NOT transpiling with TypeScript */
"moduleResolution": "bundler",
// Resolves module names using a bundler.
"module": "esnext",
// Sets the module code generation to ECMAScript modules.
"noEmit": true,
// Disables emitting compiled output files.
"lib": [
"es2020",
"dom"
]
// Specifies the library files to be included during compilation.
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/env.d.ts",
"src/**/*.tsx",
"src/**/*.vue",
"vite.config.ts"
],
//"exclude": [
// "src/mobile"
//],
// Specifies the files to be included in the compilation.
"references": [
{
"path": "./tsconfig.node.json"
}
]
// Sets up project references to another TypeScript project.
}