-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
43 lines (40 loc) · 1.38 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
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"esModuleInterop": true,
"baseUrl": ".",
"paths": {
"*": ["src/*"],
"public/*": ["public/*"],
// this is the package name we use (in the interface imports, --package for generators)
"gafi-dashboard/*": ["./*"],
// here we replace the @polkadot/api augmentation with our own, generated from chain
"@polkadot/api/augment": ["interfaces/augment-api.ts"],
// replace the augmented types with our own, as generated from definitions
"@polkadot/types/augment": ["interfaces/augment-types.ts"],
"@polkadot/types/lookup": ["interfaces/types-lookup.ts"]
},
/* Bundler mode */
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"alwaysStrict": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
/* type */
"typeRoots": ["./node_modules/@types"]
},
"include": ["src/**/*", "public/**/*", "src/env-d.ts", "src/window.d.ts"],
"exclude": ["build/**/*", "node_modules"],
"references": [{ "path": "./tsconfig.node.json" }]
}