effectSucceedWithVoid
August 4, 2026 ยท View on GitHub
Suggests using Effect.void instead of Effect.succeed(undefined) or Effect.succeed(void 0)
| Property | Value |
|---|---|
| Category | Style |
| Default severity | suggestion |
| Fixable | Yes |
| Effect versions | v3, v4 |
| Diagnostic codes | TS377016 |
| Language Service name | effectSucceedWithVoid |
| Oxlint name | effecttsgo/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"
}
}