effectGenUsesAdapter

August 4, 2026 ยท View on GitHub

Warns when using the deprecated adapter parameter in Effect.gen

PropertyValue
CategoryAnti-pattern
Default severitywarning
FixableNo
Effect versionsv3, v4
Diagnostic codesTS377027
Language Service nameeffectGenUsesAdapter
Oxlint nameeffecttsgo/effect-gen-uses-adapter

Preview

import * as Effect from "effect/Effect"

export const preview = Effect.gen(function*(_) {
/**
                                            ^ effecttsgo(effect-gen-uses-adapter): The adapter of Effect.gen is not required anymore, it is now just an alias of pipe.
*/
  return yield* Effect.succeed(1)
})

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": {
          "effectGenUsesAdapter": "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/effect-gen-uses-adapter": "warn"
  }
}