-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
35 lines (30 loc) · 1000 Bytes
/
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
{
"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"]
},
"exclude": ["node_modules"],
"include": ["hardhat.config.ts", "scripts/", "deploy/", "tasks/", "test/", "typechain/", "typechain-types/"],
"ts-node": {
"swc": true
}
}