Detects Effect values with unhandled context requirements
| Property | Value |
|---|---|
| Category | Correctness |
| Default severity | error |
| Fixable | No |
| Effect versions | v3, v4 |
| Diagnostic codes | TS377004 |
| Language Service name | missingEffectContext |
| Oxlint name | effecttsgo/missing-effect-context |
import { Effect, Context } from "effect"
class Db extends Context.Service<Db>()("Db", { make: Effect.succeed({}) }) {}
// @ts-expect-error
export const preview: Effect.Effect<void> = Db.pipe(Effect.asVoid)
/**
^^^^^^^ effecttsgo(missing-effect-context): This Effect requires a service that is missing from the expected Effect context: `Db`.
*/See the Language Service setup guide for installation instructions.
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-effect-context": "warn"
}
}
{ "$schema": "./node_modules/@effect/tsgo/schema.json", "compilerOptions": { "plugins": [ { "name": "@effect/language-service", "diagnosticSeverity": { "missingEffectContext": "warning" } } ] } }