-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtsconfig.json
More file actions
53 lines (45 loc) · 1.34 KB
/
tsconfig.json
File metadata and controls
53 lines (45 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"include": ["src/types/global.d.ts", "src"],
"exclude": ["node_modules"],
"compilerOptions": {
// prevent outputting any files, bundler will handle that
"noEmit": true,
"module": "es2022",
"moduleResolution": "bundler",
"moduleDetection": "force",
"target": "ESNext",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
},
"types": [
// add bun-types for resolving imports
//
// import { test, expect } from "bun:test";
//
"bun-types"
],
// provide backwards compatibility
// nodejs allows you to import most commonjs packages with a default import
// this flag tells typescript that it's okay to use import on commonjs modules
"allowSyntheticDefaultImports": true,
// esm doesn't yet support json modules
"resolveJsonModule": false,
"jsx": "react",
"pretty": true,
"newLine": "lf",
"stripInternal": true,
"strict": true,
"noImplicitReturns": true,
"noImplicitOverride": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
// "noUncheckedIndexedAccess": true,
"noPropertyAccessFromIndexSignature": true,
"useDefineForClassFields": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
}
}