forked from zama-ai/fhevm-mocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
45 lines (41 loc) · 1.5 KB
/
tsconfig.base.json
File metadata and controls
45 lines (41 loc) · 1.5 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
{
"files": [],
"compilerOptions": {
// Interop Constraints
// ===================
"esModuleInterop": true, // require to import hh plugins and access hre.ethers
"allowSyntheticDefaultImports": false,
"forceConsistentCasingInFileNames": true,
"verbatimModuleSyntax": false, // not practical in a CommonJS module
// Type checking
// =============
"strict": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": false, // Otherwise call like contract.getACLAddress() will fail.
"noUncheckedIndexedAccess": false, // idem
"noUnusedLocals": true,
"noUnusedParameters": true,
"useDefineForClassFields": true,
"useUnknownInCatchVariables": true,
// Modules
// =======
// Hardhat is built using CommonJS and expects plugins to be require()-able.
"module": "CommonJS",
"moduleResolution": "node10",
"resolveJsonModule": true, // we need to resolve JSON files
"rootDirs": ["./src", "./test"],
// Language and Environment
// ========================
"target": "ES2021", // Setting this to `ES2021` enables native support for `Node v16+`: https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping.
"lib": ["es2020", "ES2021.String"],
// Completeness
// ============
"skipLibCheck": true
}
}