Detects Effects returned from non-Effect-aware Vitest callbacks
| Property | Value |
|---|---|
| Category | Correctness |
| Default severity | error |
| Fixable | No |
| Effect versions | v3, v4 |
| Diagnostic codes | TS377105 |
| Language Service name | floatingEffectInVitest |
| Oxlint name | effecttsgo/floating-effect-in-vitest |
import { it } from "@effect/vitest"
import { Effect } from "effect"
it("does not execute", () => Effect.void)
/**
^^^^^^^^^^^ effecttsgo(floating-effect-in-vitest): This Vitest callback returns an Effect that Vitest does not run. Use an Effect-aware test API or run the Effect with Effect.runPromise.
*/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/floating-effect-in-vitest": "warn"
}
}
{ "$schema": "./node_modules/@effect/tsgo/schema.json", "compilerOptions": { "plugins": [ { "name": "@effect/language-service", "diagnosticSeverity": { "floatingEffectInVitest": "warning" } } ] } }