-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtsconfig.app.json
More file actions
36 lines (34 loc) · 1.17 KB
/
tsconfig.app.json
File metadata and controls
36 lines (34 loc) · 1.17 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
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2022",
"useDefineForClassFields": true,
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"@/*": ["./*"] // replace '@' as the root directory,make the project eslink checking valid
},
"composite": true, // Enable constraints that allow a TypeScript project to be used with project references.
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
"allowSyntheticDefaultImports": true, // Allow 'import x from y' when a module doesn't have a default export.
/* Linting */
"strict": true,
// "noUnusedLocals": true,
"noUnusedLocals": false, // trun off the unsaged the vars checking but just let the eslint to check it
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true,
},
"include": [
"src",// "type"
]
}