-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
66 lines (66 loc) · 1.8 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
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "tsconfig",
"presets": [["react-app", { "flow": false, "typescript": true }]],
"compilerOptions": {
// from @tsconfig/node20
"target": "es2022",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
// taken from @tsconfig/strictest
"strict": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
// taken from 'https://tsx.is/typescript'
// Treat files as modules even if it doesn't use import/export
"moduleDetection": "force",
// Ignore module structure
"module": "Preserve",
// Allow JSON modules to be imported
"resolveJsonModule": true,
// Allow JS files to be imported from TS and vice versa
"allowJs": true,
// Use correct ESM import behavior
"esModuleInterop": true,
// Disallow features that require cross-file awareness
"isolatedModules": true,
// recommended
"verbatimModuleSyntax": true,
// custom
"jsx": "preserve",
// "jsxImportSource": "nativewind",
"composite": true,
"declaration": true,
"emitDeclarationOnly": true,
"skipLibCheck": false,
"tsBuildInfoFile": ".cache/.tsbuildinfo"
},
"include": [
"tailwind.config.ts",
"**/**/*.d.ts",
"lib",
"src",
"**/**/*.mjs",
"**/**/*.js",
"**/**/*.json",
"**/**/*.ts"
],
"exclude": [
".watchmanconfig",
"postcss.config.js",
"eslint.config.mjs",
"prettier.config.mjs",
"node_modules",
"packages",
"coverage",
"build",
"dist"
]
}