forked from OurHike/OurHike
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.app.json
More file actions
39 lines (35 loc) · 1.34 KB
/
Copy pathtsconfig.app.json
File metadata and controls
39 lines (35 loc) · 1.34 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
37
38
39
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "es2023",
"lib": ["ES2023", "DOM"],
"module": "esnext",
"types": ["vite/client", "@testing-library/jest-dom"],
"allowArbitraryExtensions": true,
"skipLibCheck": true,
/* Design system components are copied as plain .jsx + a sibling .d.ts
(see src/design-system/README.md) - allowJs lets them be imported as-is
rather than ported to .tsx now; checkJs stays off since they're untyped
JS, typed only via their .d.ts. */
"allowJs": true,
"checkJs": false,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
/* Tests are checked by tsconfig.test.json instead, which adds node types.
Keeping them out here is what lets this config's `types` stay free of
"node" - so application code cannot reach for process/fs and still
typecheck, while a test that genuinely needs them still can. */
"exclude": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/test/**"]
}