-
Notifications
You must be signed in to change notification settings - Fork 458
Expand file tree
/
Copy pathtsconfig.json
More file actions
43 lines (37 loc) · 1.29 KB
/
tsconfig.json
File metadata and controls
43 lines (37 loc) · 1.29 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
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "es2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "es2022",
"moduleResolution": "bundler",
"esModuleInterop": true,
"verbatimModuleSyntax": false,
"noUncheckedSideEffectImports": true,
"noUnusedLocals": true,
"noImplicitOverride": true,
"noUnusedParameters": true,
// Default to strict, with the exceptions below
"strict": true,
// Exceptions to strictness, consider enabling in the future
"useUnknownInCatchVariables": false, // Sounds fine, enforces `} catch (e) { if (e instanceof Error) {` etc
"exactOptionalPropertyTypes": false, // Benefit unclear
// Build & Performance
"isolatedModules": true, // May want to change this once we start using const enum
"listFiles": false,
"noEmit": true,
"incremental": true,
"tsBuildInfoFile": ".tsbuildinfo",
// Module Resolution
"resolveJsonModule": true,
"typeRoots": ["node_modules/@types", "src/types/@types"],
"paths": {
"firefox-profiler/*": ["./src/*"],
"firefox-profiler-res/*": ["./res/*"]
},
// React & JSX
"jsx": "react-jsx"
},
"include": ["src/**/*.ts", "src/**/*.tsx", "__mocks__/**/*.ts"],
"exclude": ["node_modules", "dist"]
}