-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtsconfig.json
More file actions
177 lines (177 loc) · 6.52 KB
/
Copy pathtsconfig.json
File metadata and controls
177 lines (177 loc) · 6.52 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"compilerOptions": {
"strict": true,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"skipLibCheck": true,
"stripInternal": true,
"types": ["bun"],
"noEmit": true,
"plugins": [
{
"name": "@effect/language-service",
"diagnostics": true,
"diagnosticsName": true,
"includeSuggestionsInTsc": true,
"ignoreEffectSuggestionsInTscExitCode": false,
"ignoreEffectWarningsInTscExitCode": false,
"ignoreEffectErrorsInTscExitCode": false,
"allowedDuplicatedPackages": ["effect"],
"diagnosticSeverity": {
"anyUnknownInErrorContext": "error",
"asyncFunction": "off",
"catchAllToMapError": "error",
"catchToIgnore": "error",
"catchToOrElseSucceed": "error",
"catchUnfailableEffect": "error",
"classSelfMismatch": "error",
"cryptoRandomUUID": "off",
"cryptoRandomUUIDInEffect": "off",
"deterministicKeys": "error",
"duplicatePackage": "error",
"effectDoNotation": "error",
"effectFnIife": "error",
"effectFnImplicitAny": "error",
"effectFnOpportunity": "error",
"effectGenUsesAdapter": "error",
"effectInFailure": "error",
"effectInVoidSuccess": "error",
"effectMapFlatten": "off",
"effectMapVoid": "error",
"effectSucceedWithVoid": "error",
"extendsNativeError": "error",
"flatMapToMap": "error",
"floatingEffect": "error",
"genericEffectServices": "error",
"globalConsole": "off",
"globalConsoleInEffect": "off",
"globalDate": "off",
"globalDateInEffect": "off",
"globalErrorInEffectCatch": "error",
"globalErrorInEffectFailure": "error",
"globalFetch": "off",
"globalFetchInEffect": "off",
"globalRandom": "off",
"globalRandomInEffect": "off",
"globalTimers": "off",
"globalTimersInEffect": "off",
"instanceOfSchema": "error",
"layerMergeAllWithDependencies": "error",
"lazyEffect": "error",
"lazyPromiseInEffectSync": "error",
"leakingRequirements": "error",
"missedPipeableOpportunity": "off",
"missingEffectContext": "error",
"missingEffectError": "error",
"missingEffectServiceDependency": "error",
"missingLayerContext": "error",
"missingPipeableSignature": "error",
"missingReturnYieldStar": "error",
"missingStarInYieldEffectGen": "error",
"multipleCatchTag": "error",
"multipleEffectProvide": "error",
"nestedEffectGenYield": "error",
"newPromise": "off",
"newSchemaClass": "error",
"nodeBuiltinImport": "off",
"nonObjectEffectServiceType": "error",
"outdatedApi": "error",
"overriddenSchemaConstructor": "error",
"preferSchemaOverJson": "off",
"processEnv": "off",
"processEnvInEffect": "off",
"redundantMapError": "error",
"redundantOrDie": "error",
"redundantSchemaTagIdentifier": "error",
"returnEffectInGen": "error",
"runEffectInsideEffect": "error",
"schemaNumber": "error",
"schemaOpaqueInstanceMember": "error",
"schemaStructWithTag": "error",
"schemaSyncInEffect": "error",
"schemaUnionOfLiterals": "error",
"scopeInLayerEffect": "error",
"serviceNotAsClass": "error",
"strictBooleanExpressions": "off",
"strictEffectProvide": "off",
"syncToSucceed": "error",
"tryCatchInEffectGen": "off",
"unknownInEffectCatch": "error",
"unnecessaryArrowBlock": "error",
"unnecessaryEffectGen": "error",
"unnecessaryFailYieldableError": "error",
"unnecessaryPipe": "off",
"unnecessaryPipeChain": "off",
"unnecessaryTypeofType": "error",
"unsafeEffectTypeAssertion": "error"
},
"keyPatterns": [
{
"target": "service",
"pattern": "default",
"skipLeadingPath": ["src/"]
},
{
"target": "error",
"pattern": "default",
"skipLeadingPath": ["src/"]
}
],
"overrides": [
{
"include": ["test/**/*.ts", "**/test/**/*.ts", "**/*.test.ts"],
"options": {
"diagnosticSeverity": {
"missingEffectContext": "off",
"schemaSyncInEffect": "off"
}
}
},
{
// Data-first constructors and internal helpers. Machine.spawn,
// Machine.replay, toEntity, and the transition
// helpers take a machine plus options as fixed arity — they are not
// data-last operators, so a pipeable overload would be dead API.
// The public shape is documented as Machine.spawn(machine, {...}).
"include": [
"src/actor.ts",
"src/machine.ts",
"src/cluster/entity-actor-ref.ts",
"src/cluster/to-entity.ts",
"src/internal/transition.ts",
"src/internal/utils.ts"
],
"options": {
"diagnosticSeverity": {
"missingPipeableSignature": "off"
}
}
},
{
// Runtime/actor plumbing that narrows an Effect or Deferred channel
// the checker cannot prove locally: createRuntime and the event loop
// run only after MachineContextTag and Scope are provided, and the
// ask Deferred is created wide enough for settlePendingReplies to
// fail ActorStoppedError into it while the queue sees NoReplyError.
// FOLLOW-UP: thread R through wrapProcess and split the reply
// Deferred by phase so these narrowings become provable.
"include": ["src/actor.ts", "src/internal/runtime.ts"],
"options": {
"diagnosticSeverity": {
"unsafeEffectTypeAssertion": "off"
}
}
}
]
}
]
},
"include": ["src", "test", "benchmark"],
"exclude": ["node_modules"]
}