-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtsconfig.json
39 lines (34 loc) · 1.15 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
{
"compilerOptions": {
// Target and module behavior.
"lib": ["es2022", "dom"],
"target": "es2022",
// Module behavior compatibility to run w/ both tsc and ts-node.
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true, // Allow default imports for CommonJS modules.
"resolveJsonModule": true, // For importing .json files.
"moduleDetection": "force",
// Other TSC behavior.
"noEmit": true,
"allowImportingTsExtensions": true,
// JS and JSX compatibility.
"jsx": "preserve", // Support JSX.
"allowJs": true, // Allow importing `.js` from `.ts`.
// Best practices.
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
// Custom configs.
"typeRoots": ["./node_modules/@types"],
"paths": {
"@/*": ["./*"]
}
},
"exclude": ["node_modules"],
"include": ["hardhat.config.ts", "scripts/", "deploy/", "typechain-types", "test/"],
"ts-node": {
"require": ["tsconfig-paths/register"],
"swc": true
}
}