This repository was archived by the owner on Oct 18, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
68 lines (68 loc) · 3.28 KB
/
Copy pathtsconfig.base.json
File metadata and controls
68 lines (68 loc) · 3.28 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"$schema": "./node_modules/@effect/tsgo/schema.json",
"include": [],
"compilerOptions": {
"outDir": "${configDir}/dist",
"rootDir": "${configDir}/src",
// Use incremental builds with project references.
"incremental": true,
"composite": true,
// Target modern JavaScript (ES2022+) whilst staying closely compatible with the Node.js module system.
"target": "ESNEXT",
"module": "NodeNext",
"moduleDetection": "force", // Treat every non-declaration file as a module.
"verbatimModuleSyntax": true, // Only transform/eliminate type-only import/export statements.
"allowJs": false, // If you touch this, a puppy dies.
"rewriteRelativeImportExtensions": true, // Rewrite `.ts` imports to `.js` at build time.
"erasableSyntaxOnly": true, // Allows to run directly with node and type removal
// Emit source- & declaration maps.
"declarationMap": true,
"sourceMap": true,
// Opt-in to stricter type checking and correctness guard rails. The more the merrier.
"strict": true,
"exactOptionalPropertyTypes": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
// Miscellaneous
"stripInternal": false, // We temporarily override this to `true` when publishing packages.
"skipLibCheck": true, // Skip type checking of third party libraries.
"noErrorTruncation": true, // Do not truncate error messages.
"types": [], // Disable automatic loading of `@types/*` packages.
"plugins": [
{
"name": "@effect/language-service",
"namespaceImportPackages": ["effect", "@effect/*"],
// Effect suggestions and warnings surface in the editor and in `tsc` output, but
// they do not fail the build. Only Effect diagnostics raised to `error` do.
"ignoreEffectSuggestionsInTscExitCode": true,
"ignoreEffectWarningsInTscExitCode": true,
"diagnosticSeverity": {
"abortControllerInEffect": "warning",
"asyncFunction": "warning",
"cryptoRandomUUID": "warning",
"cryptoRandomUUIDInEffect": "warning",
"extendsNativeError": "warning",
"globalConsole": "warning",
"globalConsoleInEffect": "warning",
"globalDate": "warning",
"globalDateInEffect": "warning",
"globalFetch": "warning",
"globalFetchInEffect": "warning",
"globalRandom": "warning",
"globalRandomInEffect": "warning",
"globalTimers": "warning",
"globalTimersInEffect": "warning",
"instanceOfSchema": "warning",
"newPromise": "warning",
"nodeBuiltinImport": "warning",
"preferSchemaOverJson": "warning",
"processEnv": "warning",
"processEnvInEffect": "warning",
"unsafeEffectTypeAssertion": "warning"
}
}
]
}
}