Rules
no-effect-runtime-run
Keep runtime execution at documented boundaries.
Purpose and behavior
Keep runtime execution at documented boundaries.
The rule reports member calls named runCallback, runFork, runMain, runPromise, runPromiseExit or runSync on any receiver. The rule ignores bracket calls but does not exempt top-level entrypoints. Give a suppression reason at execution boundaries. Compose effects elsewhere.
Options
No configurable options. Enable with "rules/no-effect-runtime-run": "error".
Invalid example
Effect.runPromise(program)Valid example
program.pipe(Effect.provide(layer))Fixes and exceptions
This rule provides no automatic fix. Rewrite the code to preserve its intended behavior.
For a boundary exception, use oxlint-disable-next-line rules/no-effect-runtime-run -- reason. Examples cover this rule only and may omit imports or declarations.
Source and tests
Enabled by the Effect preset.