mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 10:18:46 +03:00
10 lines
308 B
YAML
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)
|