missingStarInYieldEffectGen

August 4, 2026 ยท View on GitHub

Detects bare yield (without *) inside Effect generator scopes

PropertyValue
CategoryCorrectness
Default severityerror
FixableYes
Effect versionsv3, v4
Diagnostic codesTS377007, TS377008
Language Service namemissingStarInYieldEffectGen
Oxlint nameeffecttsgo/missing-star-in-yield-effect-gen

Preview

import * as Effect from "effect/Effect"

export const preview = Effect.gen(function*() {
  const value = yield Effect.succeed(1)
/**
                ^^^^^ effecttsgo(missing-star-in-yield-effect-gen): This uses `yield` for an `Effect` value. `yield*` is the Effect-aware form in this context.
*/
  return value
})

Language Service Configuration

See the Language Service setup guide for installation instructions.

{
  "$schema": "./node_modules/@effect/tsgo/schema.json",
  "compilerOptions": {
    "plugins": [
      {
        "name": "@effect/language-service",
        "diagnosticSeverity": {
          "missingStarInYieldEffectGen": "warning"
        }
      }
    ]
  }
}

Oxlint Configuration

See the Oxlint setup guide for installation and patching instructions.

{
  "$schema": "./node_modules/@effect/tsgo/oxlint-schema.json",
  "options": {
    "typeAware": true
  },
  "plugins": ["effecttsgo"],
  "rules": {
    "effecttsgo/missing-star-in-yield-effect-gen": "warn"
  }
}