floatingEffect

August 4, 2026 ยท View on GitHub

Detects Effect values that are neither yielded nor assigned

PropertyValue
CategoryCorrectness
Default severityerror
FixableYes
Effect versionsv3, v4
Diagnostic codesTS377001, TS377058
Language Service namefloatingEffect
Oxlint nameeffecttsgo/floating-effect

Preview

import * as Effect from "effect/Effect"

Effect.log("forgotten")
/**
^^^^^^^^^^^^^^^^^^^^^^^ effecttsgo(floating-effect): This Effect value is neither yielded nor used in an assignment.
*/

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": {
          "floatingEffect": "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/floating-effect": "warn"
  }
}