-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtsconfig.base.json
More file actions
112 lines (110 loc) · 4.46 KB
/
tsconfig.base.json
File metadata and controls
112 lines (110 loc) · 4.46 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"$schema": "https://raw.githubusercontent.com/Effect-TS/tsgo/refs/heads/main/schema.json",
"include": [],
"compilerOptions": {
"outDir": "${configDir}/dist",
"rootDir": "${configDir}/src",
"tsBuildInfoFile": "${configDir}/dist/tsconfig.tsbuildinfo",
// 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": "ES2022",
"module": "NodeNext",
"moduleResolution": "nodenext",
"moduleDetection": "force", // Treat every non-declaration file as a module.
"verbatimModuleSyntax": true, // Only transform/eliminate type-only import/export statements.
"allowImportingTsExtensions": true,
"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 bun and type removal
// Emit source- & declaration maps.
"declaration": true,
"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.
"jsx": "react-jsx",
"plugins": [
{
"name": "@effect/language-service",
"transform": "@effect/language-service/transform",
"namespaceImportPackages": ["effect", "@effect/*", "@beep/*"],
"ignoreEffectSuggestionsInTscExitCode": false,
"ignoreEffectWarningsInTscExitCode": false,
"ignoreEffectErrorsInTscExitCode": false,
"includeSuggestionsInTsc": true,
"skipDisabledOptimization": false,
"importAliases": {
"Array": "A",
"Option": "O",
"Predicate": "P",
"Record": "R",
"Schema": "S",
"Equal": "Eq"
},
"diagnosticSeverity": {
"anyUnknownInErrorContext": "error",
"catchAllToMapError": "error",
"classSelfMismatch": "error",
"floatingEffect": "error",
"catchUnfailableEffect": "error",
"deterministicKeys": "error",
"duplicatePackage": "error",
"effectFnIife": "error",
"effectFnOpportunity": "error",
"effectGenUsesAdapter": "error",
"effectInFailure": "error",
"effectInVoidSuccess": "error",
"effectMapVoid": "error",
"effectSucceedWithVoid": "error",
"extendsNativeError": "error",
"genericEffectServices": "error",
"missingEffectContext": "error",
"missingEffectError": "error",
"globalErrorInEffectCatch": "error",
"globalErrorInEffectFailure": "error",
"missingLayerContext": "error",
"instanceOfSchema": "error",
"missingReturnYieldStar": "error",
"missingStarInYieldEffectGen": "error",
"layerMergeAllWithDependencies": "error",
"overriddenSchemaConstructor": "error",
"leakingRequirements": "error",
"missedPipeableOpportunity": "error",
"missingEffectServiceDependency": "error",
"multipleEffectProvide": "error",
"nodeBuiltinImport": "error",
"outdatedApi": "error",
"preferSchemaOverJson": "error",
"redundantSchemaTagIdentifier": "error",
"returnEffectInGen": "error",
"runEffectInsideEffect": "error",
"schemaStructWithTag": "error",
"schemaSyncInEffect": "error",
"schemaUnionOfLiterals": "error",
"scopeInLayerEffect": "error",
"serviceNotAsClass": "error",
"strictBooleanExpressions": "error",
"strictEffectProvide": "error",
"tryCatchInEffectGen": "error",
"unknownInEffectCatch": "error",
"unnecessaryEffectGen": "error",
"unnecessaryFailYieldableError": "error",
"unnecessaryPipe": "error",
"unnecessaryPipeChain": "error"
}
}
]
}
}