forked from forcedotcom/salesforcedx-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.common.json
33 lines (33 loc) · 1.48 KB
/
tsconfig.common.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
// https://www.typescriptlang.org/tsconfig#extends
// The configuration from this file is loaded first, then overridden by those in the inheriting config file. But path-based compiler options (outDir, outFile, rootDir, include, exclude, files) are resolved from the config file they're found in. They cannot be extended (https://github.com/microsoft/TypeScript/issues/29172).
// Config ref: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
{
// https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"composite": true,
// The current version of vscode we support runs on node 14 so use that value as the target
// Values can be found here https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
"target": "ES2020",
// We are building using node 18 so use that value for the lib.
"lib": [
"es2022",
"dom"
],
"module": "node16",
"moduleResolution": "Node16",
"esModuleInterop": false,
"resolveJsonModule": true,
"sourceMap": true,
"types": ["jest", "node"],
"declaration": true,
"declarationMap": true,
"preserveConstEnums": true,
"noImplicitAny": true,
// TODO: cleanup unknown usage in catch blocks and remove below setting
"useUnknownInCatchVariables": false,
// TODO: cleanup unused vars (about 170 errors of unused vars) (W-11052270)
// "noUnusedLocals": true,
"allowSyntheticDefaultImports": true
}
}