unnecessaryPipe

August 4, 2026 ยท View on GitHub

Removes pipe calls with no arguments

PropertyValue
CategoryStyle
Default severitysuggestion
FixableYes
Effect versionsv3, v4
Diagnostic codesTS377013
Language Service nameunnecessaryPipe
Oxlint nameeffecttsgo/unnecessary-pipe

Preview

import { pipe } from "effect/Function"

export const preview = pipe(1)
/**
                       ^^^^^^^ effecttsgo(unnecessary-pipe): This pipe call contains no arguments.
*/

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": {
          "unnecessaryPipe": "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/unnecessary-pipe": "warn"
  }
}