Files
opencode/script/ast-grep/effect-simplifications/rules/no-effect-and-then-succeed-undefined.yml
2026-08-21 19:48:27 +00:00

10 lines
308 B
YAML

id: no-effect-and-then-succeed-undefined
language: TypeScript
message: Use Effect.as(undefined) to preserve the exact undefined success type.
severity: error
rule:
all:
- pattern: Effect.andThen($$$SELF, Effect.succeed(undefined))
- not:
pattern: Effect.andThen($_FIRST, $_SECOND, $$$REST)