Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 1.54 KB

missing-pipeable-signature.md

File metadata and controls

61 lines (50 loc) · 1.54 KB

missingPipeableSignature

Reports exported fixed-arity functions whose call signatures have no corresponding pipeable overload

Property Value
Category Style
Default severity off
Fixable No
Effect versions v3, v4
Diagnostic codes TS377101
Language Service name missingPipeableSignature
Oxlint name effecttsgo/missing-pipeable-signature

Preview

export const getAt = (self: ReadonlyArray<string>, index: number): string => self[index]
/**
             ^^^^^ effecttsgo(missing-pipeable-signature): Exported function `getAt` has no pipeable overload corresponding to its signature `(self: ReadonlyArray<string>, index: number) => string`.
*/

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": {
          "missingPipeableSignature": "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/missing-pipeable-signature": "warn"
  }
}