Reports Effect.all and Effect.forEach calls without an explicit concurrency option, which run sequentially by default
| Property | Value |
|---|---|
| Category | Style |
| Default severity | off |
| Fixable | Yes |
| Effect versions | v3, v4 |
| Diagnostic codes | TS377188 |
| Language Service name | missingConcurrencyOption |
| Oxlint name | effecttsgo/missing-concurrency-option |
import { Effect } from "effect"
declare const items: ReadonlyArray<number>
declare const save: (n: number) => Effect.Effect<void>
export const program = Effect.forEach(items, save)
/**
^^^^^^^^^^^^^^ effecttsgo(missing-concurrency-option): `Effect.forEach` runs sequentially unless `concurrency` is set; pass `{ concurrency: 1 }` to keep sequential execution or set the concurrency you intend.
*/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-concurrency-option": "warn"
}
}
{ "$schema": "./node_modules/@effect/tsgo/schema.json", "compilerOptions": { "plugins": [ { "name": "@effect/language-service", "diagnosticSeverity": { "missingConcurrencyOption": "warning" } } ] } }