duplicatePackage

August 4, 2026 ยท View on GitHub

Warns when multiple versions of an Effect-related package are detected in the program

PropertyValue
CategoryCorrectness
Default severitywarning
FixableNo
Effect versionsv3, v4
Diagnostic codesTS377051
Language Service nameduplicatePackage
Oxlint nameeffecttsgo/duplicate-package

Preview

import * as Effect from "effect/Effect"

// This preview only reports when the workspace resolves duplicated
// Effect package versions.
export const preview = Effect.succeed(true)

This rule depends on project context and does not emit a diagnostic in the standalone preview.

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": {
          "duplicatePackage": "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/duplicate-package": "warn"
  }
}