Repository navigation
Expand file tree
/
Copy pathtsconfig.common.json
More file actions
47 lines (47 loc) · 2.02 KB
/
Copy pathtsconfig.common.json
File metadata and controls
47 lines (47 loc) · 2.02 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
46
47
// 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
"compilerOptions": {
"target": "ES2024",
"lib": ["ES2024"],
"module": "nodenext",
"moduleResolution": "nodenext",
"strict": true,
"skipLibCheck": true,
"esModuleInterop": false,
"ignoreDeprecations": "6.0",
"resolveJsonModule": true,
"sourceMap": true,
"types": ["node", "vitest/globals"],
"declaration": true,
"declarationMap": true,
"isolatedModules": true,
"paths": {
"salesforcedx-vscode-services": ["./packages/salesforcedx-vscode-services/out/src/index.d.ts"]
},
"noImplicitAny": true,
// TODO: cleanup unknown usage in catch blocks and remove below setting
"useUnknownInCatchVariables": false,
"noUnusedLocals": true,
"allowSyntheticDefaultImports": true,
// Error pins in diagnosticSeverity are "error" (most default to "off" upstream, so they report nothing until pinned); the build gate is config/effect-diagnostics.json enforcedRules. effectFnOpportunity is a "warning" editor override and stays out of enforcedRules.
"plugins": [
{
"name": "@effect/language-service",
"diagnosticSeverity": {
"floatingEffect": "error",
"globalRandom": "error",
"globalRandomInEffect": "error",
"globalFetchInEffect": "error",
"globalTimersInEffect": "error",
"missedPipeableOpportunity": "error",
"nestedEffectGenYield": "error",
"effectFnOpportunity": "warning"
}
},
{ "name": "@salesforce/vscode-i18n/tsPlugin" }
]
}
}