The best way to control Claude Code, Codex and more from any computer or phone
chore(lint): disable returnEffectInGen (#25050)
Julius Marminge committed
Oct 25, 2026 at 19:33 UTC
d1f701849b32889d60d09bc17e8a162bb747815f
6 files changed
+1
-5
apps/server/src/observability/EventLoopMonitor.ts
-1
@@ -75,7 +75,6 @@ const makeNodeSampler = Effect.gen(function* () {
75
let usage = process.resourceUsage();
76
let sampledAt = NodePerfHooks.performance.now();
77
78
- // @effect-diagnostics-next-line returnEffectInGen:off - the read effect is the result.
78
return Effect.sync(() => {
79
const nextElu = NodePerfHooks.performance.eventLoopUtilization();
80
const nextUsage = process.resourceUsage();
apps/server/src/orchestration-v2/LiveStreamBudget.ts
-1
@@ -172,7 +172,6 @@ export const makeLiveStreamBudget = Effect.fn("makeLiveStreamBudget")(function*
172
}),
173
Effect.forkScoped,
174
);
175
- // @effect-diagnostics-next-line returnEffectInGen:off - Stream.fromPull needs the pull effect as its result.
175
return Effect.gen(function* () {
176
// RpcServer requests the next batch after ACK; dequeueing does not end delivery.
177
release(inFlight);
apps/server/src/orchestration-v2/ShellStream.ts
-1
@@ -384,7 +384,6 @@ export function composeShellStreamWithEnrichment<A, E, R, A2, E2, R2, A3, E3, R3
384
let previous: Deferred.Deferred<void> | undefined;
385
// Stream.merge pulls ahead after handing off each batch. Wait for the next
386
// downstream pull so shell delivery keeps that batch charged until its RPC ACK.
387
- // @effect-diagnostics-next-line returnEffectInGen:off - Stream.fromPull needs the pull effect as its result.
387
return Effect.gen(function* () {
388
if (previous) yield* Deferred.succeed(previous, undefined);
389
const next = yield* Queue.take(output);
apps/server/src/ws.ts
-1
@@ -3366,7 +3366,6 @@ export const layer = Layer.unwrap(
3366
),
3367
Effect.forkScoped,
3368
);
3369
- // @effect-diagnostics-next-line returnEffectInGen:off
3369
return httpEffect;
3370
}).pipe(
3371
Effect.provide(
infra/relay/src/hooks/HookInboxObject.ts
-1
@@ -75,7 +75,6 @@ export const layer = HookInboxObject.make(
75
Effect.gen(function* () {
76
const state = yield* Cloudflare.DurableObjectState;
77
// Only the per-object inner Effect may access storage.
78
- // @effect-diagnostics-next-line returnEffectInGen:off
78
return Effect.gen(function* () {
79
const layerSql = SqliteClient.layer({ storage: state.raw.storage });
80
const inboxId = state.raw.id.name ?? state.raw.id.toString();
tsconfig.base.json
+1
@@ -42,6 +42,7 @@
42
"flatMapIgnoredParamToAndThen": "error",
43
"mapSomeToAsSome": "error",
44
"unnecessaryPipeChain": "error",
45
+ "returnEffectInGen": "off",
46
"effectFnOpportunity": "suggestion",
47
"anyUnknownInErrorContext": "error",
48
"unsafeEffectTypeAssertion": "error",