effectSucceedWithVoid

August 4, 2026 ยท View on GitHub

Suggests using Effect.void instead of Effect.succeed(undefined) or Effect.succeed(void 0)

PropertyValue
CategoryStyle
Default severitysuggestion
FixableYes
Effect versionsv3, v4
Diagnostic codesTS377016
Language Service nameeffectSucceedWithVoid
Oxlint nameeffecttsgo/effect-succeed-with-void

Preview

import { Effect } from "effect"

export const preview = Effect.succeed(undefined)
/**
                       ^^^^^^^^^^^^^^^^^^^^^^^^^ effecttsgo(effect-succeed-with-void): `Effect.void` represents the same outcome as `Effect.succeed(undefined)` or `Effect.succeed(void 0)`.
*/

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": {
          "effectSucceedWithVoid": "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-succeed-with-void": "warn"
  }
}