The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 17:00 UTC
chore(lint): enforce flatMapIgnoredParamToAndThen (#25089)
Julius Marminge committed
Oct 25, 2026 at 17:17 UTC
05ef5ff67b0abc0c3af4d9db4a234723fe6fd5bc
4 files changed
+4
-3
apps/server/src/mcp/McpToolAccess.ts
+1
-1
@@ -102,7 +102,7 @@ export const readsAsCaller = <P, A, E, R>(handle: (params: P) => Effect.Effect<A
102
export const actsAsCaller = <P, A, E, R>(handle: (params: P) => Effect.Effect<A, E, R>) =>
103
declare((params: P) =>
104
requireThreadCaller.pipe(
105
- Effect.flatMap(() => writingCaller),
105
+ Effect.andThen(writingCaller),
106
Effect.flatMap(() => handle(params)),
107
),
108
);
apps/server/src/telemetry/AnalyticsService.ts
+1
-1
@@ -307,7 +307,7 @@ export const make = Effect.gen(function* () {
307
),
308
);
309
310
- yield* Effect.forever(Effect.sleep(FLUSH_INTERVAL_MS).pipe(Effect.flatMap(() => flushWhenDue)), {
310
+ yield* Effect.forever(Effect.sleep(FLUSH_INTERVAL_MS).pipe(Effect.andThen(flushWhenDue)), {
311
disableYield: true,
312
}).pipe(Effect.forkScoped);
313
packages/provider-acp/src/server/AcpSessionRuntime.ts
+1
-1
@@ -2005,7 +2005,7 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
2005
value: string | boolean,
2006
): Effect.Effect<EffectAcpSchema.SetSessionConfigOptionResponse, EffectAcpErrors.AcpError> =>
2007
validateConfigOptionValue(configId, value).pipe(
2008
- Effect.flatMap(() => getStartedState),
2008
+ Effect.andThen(getStartedState),
2009
Effect.flatMap((started) =>
2010
Ref.get(configOptionsRef).pipe(
2011
Effect.flatMap((configOptions) => {
tsconfig.base.json
+1
@@ -24,6 +24,7 @@
24
"namespaceImportPackages": ["@effect/platform-node", "effect"],
25
"effectFn": ["span", "inferred-span", "suggested-span"],
26
"diagnosticSeverity": {
27
+ "flatMapIgnoredParamToAndThen": "error",
28
"mapSomeToAsSome": "error",
29
"unnecessaryPipeChain": "error",
30
"effectFnOpportunity": "suggestion",