Skip to content

Imported lint diagnostics

These are the imported effecttsgo/* rules from @effect/tsgo@0.57.0. The code identifies the rule; a rule can have several messages. Placeholders such as {0} are replaced by the names and types from your source.

Follow the message's advice at the reported source location, change the source manually and rerun the original check. VibeLang does not provide automatic fixes for these diagnostics.

The default column comes from the pinned rule. Suggestions appear in the language server and can print in compiler checks when includeSuggestionsInTsc is true. A rule whose default is off must be enabled to report. File and Effect-version eligibility still apply. Configure supported rules with vibe.severities; the full code matters: EK3810 and EK38100 are different rules.

Each rule name links to its pinned implementation. The table quotes its diagnostic messages so that a terminal or editor message can be found verbatim.

CodeRuleDefaultMessages and repair advice
EK3802effecttsgo/abortControllerInEffectsuggestionAbortController is manually constructed inside Effect code. Use Effect.abortSignal for Effect-managed cancellation.
EK3803effecttsgo/acquireReleaseDisposablesuggestionEffect.acquireDisposable expresses this disposable resource acquisition more directly than Effect.acquireRelease with a manual disposal finalizer.
EK3804effecttsgo/allOfMapToForEachsuggestionEffect.forEach expresses this effectful array mapping more directly than Effect.all over Array#map.
EK3805effecttsgo/anyUnknownInErrorContextoff{0}
EK3806effecttsgo/apiStabilityLeakoff{0} exposes {1}, an {2} API.

{0} is declared {1} here.
EK3807effecttsgo/asyncFunctionoffThis code declares an async function, consider representing this async control flow with Effect values and Effect.gen.
EK3808effecttsgo/catchAllTagDispatchToCatchTagsuggestionBranching on {0}._tag inside Effect.{1} hand-rolls tagged error dispatch; use Effect.catchTag or Effect.catchTags, which re-fail unmatched errors automatically.
EK3809effecttsgo/catchAllToMapErrorsuggestionEffect.mapError expresses the same error-type transformation more directly than Effect.{0} followed by Effect.fail.
EK3810effecttsgo/catchChainToFirstSuccessOfsuggestionChained Effect.catch fallbacks that ignore the error can be written with Effect.firstSuccessOf. Wrap each lazy fallback with Effect.suspend to preserve when it is constructed.
EK3811effecttsgo/catchConditionalRefailToCatchIfsuggestionEffect.{2} expresses selective recovery more directly than Effect.{0} with a conditional Effect.{1} passthrough.
EK3812effecttsgo/catchDieToOrDiesuggestionEffect.orDie expresses escalating every typed failure into a defect more directly than Effect.{0} with an identity-forwarding Effect.die handler.
EK3813effecttsgo/catchIfTagToCatchTagsuggestionEffect.catchTag expresses tagged error recovery more directly than Effect.catchIf with a _tag equality predicate.
EK3814effecttsgo/catchRefailToTapErrorsuggestionUse Effect.tapError to observe the error and preserve the original failure without having to re-fail it.
EK3815effecttsgo/catchTagToCatchReasonsuggestionBranching on {0}.reason._tag inside Effect.{1} hand-rolls reason dispatch; use Effect.catchReason or Effect.catchReasons, which re-fail unmatched reasons automatically.
EK3816effecttsgo/catchToIgnoresuggestionEffect.{1} expresses ignored failure more directly than Effect.{0} returning Effect.void.
EK3817effecttsgo/catchToOrElseSucceedsuggestionEffect.orElseSucceed expresses the same recovery more directly than Effect.{0} followed by Effect.succeed.
EK3818effecttsgo/catchUnfailableEffectsuggestionThe previous Effect does not fail, so this error-handling branch will never run.
EK3819effecttsgo/classSelfMismatcherrorThe Self type parameter for this class should be {0}.
EK3820effecttsgo/cryptoRandomUUIDoffThis code uses crypto.randomUUID(), prefer the Effect Crypto module instead.
EK3821effecttsgo/cryptoRandomUUIDInEffectoffThis Effect code uses crypto.randomUUID(), prefer the Effect Crypto module instead.
EK3822effecttsgo/deterministicKeysoffThis key does not match the deterministic key for this declaration. The expected key is {0}.
EK3823effecttsgo/duplicatePackagewarningMultiple versions of package {0} were detected: {1}. Package duplication can change runtime identity and type equality across Effect modules. If this is intentional, set the LSP config allowedDuplicatedPackages to {2}.
EK3824effecttsgo/effectDoNotationoffThis uses the Effect do emulation. Effect.gen or Effect.fn achieve the same result with native JS scopes.
EK3825effecttsgo/effectFnIifewarning{0}.{1} returns a reusable function that can take arguments, but it is invoked immediately here. Effect.gen represents the immediate-use form for this pattern{2}.
EK3826effecttsgo/effectFnImplicitAnyerrorParameter {0} implicitly has type any in Effect.fn, Effect.fnUntraced, or Effect.fnUntracedEager. No parameter type is available from an explicit annotation or contextual function type.
EK3827effecttsgo/effectFnOpportunitysuggestionThis expression can be rewritten in the reusable function form {0}.
EK3828effecttsgo/effectGenUsesAdapterwarningThe adapter of Effect.gen is not required anymore, it is now just an alias of pipe.
EK3829effecttsgo/effectInFailurewarningThe error channel contains an Effect ({0}). Putting Effect computations in the failure channel is not intended; keep only failure types there.
EK3830effecttsgo/effectInVoidSuccesswarningThere is a nested '{0}' in the 'void' success channel, beware that this could lead to nested Effect<Effect<...>> that won't be executed.
EK3831effecttsgo/effectMapFlattensuggestionEffect.map + Effect.flatten is the same as Effect.flatMap that expresses the same steps more directly.
EK3832effecttsgo/effectMapVoidsuggestionThis expression discards the success value through mapping. Effect.asVoid represents that form directly.
EK3833effecttsgo/effectSleepZeroToYieldNowsuggestionConsider Effect.yieldNow for cooperative yielding instead of sleeping for zero duration.
EK3834effecttsgo/effectSucceedWithVoidsuggestionEffect.void represents the same outcome as Effect.succeed(undefined) or Effect.succeed(void 0).
EK3835effecttsgo/errorPayloadShadowsNamesuggestionThe payload field name shadows this error's own name, so logs and String(error) show the field value instead of the error type. Consider renaming it.
EK3836effecttsgo/experimentalApiUsagewarning{0} is an experimental API.
EK3837effecttsgo/extendsNativeErroroffThis class extends the native Error type directly. Untagged native errors lose distinction in the Effect failure channel.
EK3838effecttsgo/flatMapConditionalToFilterOrFailsuggestionEffect.{0} expresses this conditional validation more directly than Effect.flatMap with an identity Effect.succeed branch.
EK3839effecttsgo/flatMapIgnoredParamToAndThensuggestionEffect.andThen expresses this sequencing more directly than Effect.flatMap with a zero-parameter callback.
EK3840effecttsgo/flatMapToMapsuggestionEffect.map expresses this success-value transformation more directly than Effect.flatMap followed by Effect.succeed.
EK3841effecttsgo/flatMapToTapsuggestionEffect.tap expresses this observation more directly than Effect.{0} with a manual re-yield.
EK3801effecttsgo/floatingEffecterrorThis Effect value is neither yielded nor used in an assignment.

This Effect-able {0} value is neither yielded nor assigned to a variable.
EK3842effecttsgo/floatingEffectInVitesterrorThis Vitest callback returns an Effect that Vitest does not run. Use an Effect-aware test API or run the Effect with Effect.runPromise.
EK3843effecttsgo/genericEffectServiceswarningEffect Services with type parameters are not supported because they cannot be properly discriminated at runtime, which may cause unexpected behavior.
EK3844effecttsgo/globalConsoleoffThis code uses console.{1}, the corresponding Effect logging API is {0}.
EK3845effecttsgo/globalConsoleInEffectoffThis Effect code uses console.{1}, logging in Effect code is represented through {0}.
EK3846effecttsgo/globalDateoffThis code uses Date.now(), time access is represented through Clock from Effect.

This code constructs new Date(), date values are represented through DateTime from Effect.
EK3847effecttsgo/globalDateInEffectoffThis Effect code uses Date.now(), time access in Effect code is represented through Clock from Effect.

This Effect code constructs new Date(), date values in Effect code are represented through DateTime from Effect.
EK3848effecttsgo/globalErrorInEffectCatchwarningThe catch callback in {0} returns the global Error type. Untagged errors merge together in the Effect error channel and lose type-level distinction; a tagged error preserves that distinction and can wrap the original error in a cause property.
EK3849effecttsgo/globalErrorInEffectFailurewarningGlobal 'Error' loses type safety as untagged errors merge together in the Effect failure channel. Consider using a tagged error and optionally wrapping the original in a 'cause' property.
EK3850effecttsgo/globalFetchoffThis code uses the global fetch function, HTTP requests are represented through HttpClient from {0}.
EK3851effecttsgo/globalFetchInEffectoffThis Effect code calls the global fetch function, HTTP requests in Effect code are represented through HttpClient from {0}.
EK3852effecttsgo/globalRandomoffThis code uses Math.random(), randomness is represented through the Effect Random service.
EK3853effecttsgo/globalRandomInEffectoffThis Effect code uses Math.random(), randomness is represented through the Effect Random service.
EK3854effecttsgo/globalTimersoffThis code uses {1}, the corresponding Effect timer API is {0} from Effect.
EK3855effecttsgo/globalTimersInEffectoffThis Effect code uses {1}, the corresponding timer API in this context is {0} from Effect.
EK3856effecttsgo/instanceOfSchemaoffThis code uses instanceof with an Effect Schema type. Schema.is is the schema-aware runtime check for this case.
EK3857effecttsgo/layerMergeAllWithDependencieswarningThis layer provides {0} which is required by another layer in the same Layer.mergeAll call. Layer.mergeAll creates layers in parallel, so dependencies between layers will not be satisfied. Consider moving this layer into a Layer.provideMerge after the Layer.mergeAll.
EK3858effecttsgo/lazyEffectsuggestion{0} returns a lazy {1}. {1} is already lazy, so wrapping it in a zero-argument function adds unnecessary indirection.
EK3859effecttsgo/lazyPromiseInEffectSyncwarningThis Effect.sync thunk returns a Promise. Use Effect.promise or Effect.tryPromise to represent async work.
EK3860effecttsgo/leakingRequirementssuggestionMethods of this Service require {0} from every caller. The requirement becomes part of the public service surface instead of remaining internal to Layer implementation. Resolve these dependencies at Layer creation and provide them to each method, so the service's type reflects its purpose, not its implementation. To suppress this diagnostic for specific dependency types that are intentionally passed through (e.g., HttpServerRequest), add @effect-leakable-service JSDoc to their interface declarations, or to this service by adding a @effect-expect-leaking {0} JSDoc. More info and examples at https://effect.website/docs/requirements-management/layers/#avoiding-requirement-leakage
EK3861effecttsgo/mapSomeToAsSomesuggestionEffect.asSome expresses wrapping the success value in Option.some directly.
EK3862effecttsgo/matchEffectToMapBothsuggestionEffect.mapBoth expresses these failure and success transformations more directly than Effect.matchEffect.
EK3863effecttsgo/matchEffectToMatchsuggestionEffect.{0} expresses this non-effectful fold more directly than Effect.{1} with Effect.succeed handlers.
EK3864effecttsgo/missedPipeableOpportunityoffThis nested call structure has a pipeable form. {0}.pipe(...) represents the same call sequence in pipe style and may be easier to read.
EK3865effecttsgo/missingEffectContexterrorThis Effect requires a service that is missing from the expected Effect context: {0}.

Adjusting this layer composition could provide the missing service.

This layer provides the missing service {0}.
EK3866effecttsgo/missingEffectErrorerrorMissing errors {0} in the expected Effect type.
EK3867effecttsgo/missingEffectServiceDependencyoffService '{0}' is required but not provided by dependencies.

Services {0} are required but not provided by dependencies.
EK3868effecttsgo/missingLayerContexterrorMissing '{0}' in the expected Layer context.
EK3869effecttsgo/missingPipeableSignatureoffExported function {0} has no pipeable overload corresponding to its signature {1}.
EK3870effecttsgo/missingReturnYieldStarerrorThis Effect never succeeds; using return yield* preserves a definitive generator exit point for type narrowing and tooling support.
EK3871effecttsgo/missingStarInYieldEffectGenerrorInside this Effect generator.

This uses yield for an Effect value. yield* is the Effect-aware form in this context.
EK3872effecttsgo/multipleCatchTagsuggestionThese {0} consecutive catchTag transformations can be collapsed into a single catchTags call.

This catchTag transformation is part of a consecutive chain that can be collapsed into catchTags.
EK3873effecttsgo/multipleEffectProvidewarningThis expression chains multiple Effect.provide calls. Providing Layers in multiple calls in a chain can break service lifecycle behavior compared with a single combined provide with merged layers.
EK3874effecttsgo/nestedEffectGenYieldoffThis yield* is applied to a nested Effect.gen(...) that can be inlined in the parent Effect generator context.
EK3875effecttsgo/newPromiseoffThis code constructs new Promise(...), prefer Effect APIs such as Effect.async, Effect.promise, or Effect.tryPromise instead of manual Promise construction.
EK3876effecttsgo/newSchemaClassoffThis Schema class is constructed with new. {0}.make(...) can be used to construct the Schema class instance.
EK3877effecttsgo/nodeBuiltinImportoffThis module reference uses the {2} module, the corresponding Effect API is {0} from {1}.
EK3878effecttsgo/nonObjectEffectServiceTypeerrorEffect.Service is declared with a primitive service type. Effect.Service models object-shaped services; primitive values use Context.Tag or Effect.Tag directly.
EK3879effecttsgo/obsoleteMatchImportwarningThis module reference imports {0}, which is obsolete in Effect v4. In Effect v4, pattern matching is provided directly by Match from effect (or effect/Match).
EK3880effecttsgo/obsoleteSchemaImportwarningThis module reference imports {0}, which is obsolete in Effect v4. In Effect v4, Schema is provided directly by Schema from effect (or effect/Schema).
EK3881effecttsgo/optionMatchToFromOptionsuggestionEffect.fromOption expresses this Option-to-Effect conversion more directly than Option.match or an Option tag conditional.
EK3882effecttsgo/outdatedApiwarningThis project targets Effect v4, but this code uses the Effect v3 API {0}. The referenced API belongs to the v3 surface rather than the configured v4 surface. {1}

This project targets Effect v4, but this code uses Effect v3 APIs. The referenced API belongs to the v3 surface rather than the configured v4 surface.
EK3883effecttsgo/overriddenSchemaConstructorerrorThis Schema subclass defines its own constructor. For Schema classes, constructor overrides break decoding behavior for the class shape. Custom construction can be expressed through a static new method instead.
EK3884effecttsgo/preferBarrelImportoff'{0}' is imported directly, but barrelImportPackages expects named imports from the barrel '{1}'. Use '{2}' instead.
EK3885effecttsgo/preferEffectArrayoffConsider effect/Array.{0} instead of native Array.{1}. {2}
EK3886effecttsgo/preferEffectRecordoffConsider effect/Record.{0} instead of native {1}. {2}
EK3887effecttsgo/preferEffectStringoffConsider effect/String.{0} instead of native String.{1}. {2}
EK3888effecttsgo/preferNamespaceImportoff'{0}' is imported by name from '{1}', but namespaceImportPackages expects a namespace import. Use '{2}' instead.

'{0}' is imported by name from '{1}', but namespaceImportPackages expects a namespace import of the module that declares '{0}'.
EK3889effecttsgo/preferSchemaOverJsonoffThis code uses JSON.parse or JSON.stringify. {0}
EK3890effecttsgo/preferSchemaTaggedErroroffPrefer Schema.TaggedError over Data.TaggedError for an explicit schema contract.
EK3891effecttsgo/preferSchemaTypePropertyoffDo not use Schema.Schema.Type<typeof X> to extract a schema's type. Use typeof X.Type instead.
EK3892effecttsgo/preferSucceedSomeOrNonesuggestionEffect.{0} expresses this Option success value directly.
EK3893effecttsgo/preferTypedSchemaDecodersuggestionThis input is already assignable to the schema's Encoded type. Use {0} to preserve compile-time type checking instead of discarding the input type through {1}.
EK3894effecttsgo/preferUnsafeConstructorsuggestion{0} starts a fiber to run a pure constructor. Use the synchronous variant {1} instead.
EK3895effecttsgo/processEnvoffThis code reads from process.env, environment configuration is represented through Config from Effect.
EK3896effecttsgo/processEnvInEffectoffThis Effect code reads from process.env, environment configuration in Effect code is represented through Config from Effect.
EK3897effecttsgo/promiseInEffectSuccesswarningThe Effect success channel contains a Promise that is not awaited. Use Effect.promise or Effect.tryPromise to represent async work.
EK3898effecttsgo/provideLayerSucceedToProvideServicesuggestionEffect.{0} provides this inline single-service layer directly.
EK3899effecttsgo/raceFirstWithSleepToTimeoutsuggestionThis Effect first-completion race has exactly one sleep- or delay-based timer arm. Effect.timeoutOrElse expresses the timeout and fallback directly.
EK38100effecttsgo/redundantMapErrorsuggestionThis generator applies the same inline Effect.mapError(...) to every yielded effect. Keep that Effect.mapError(...) inline and hoist it once to the generator result: Effect.gen(...).pipe(Effect.mapError(...)), or Effect.fn(function*(){ ... }, Effect.mapError(...)).

This repeated Effect.mapError(...) site participates in the hoistable generator-wide mapping.
EK38101effecttsgo/redundantOrDiesuggestionThis generator applies Effect.orDie to every yielded effect. Hoist it once to the generator result: Effect.gen(...).pipe(Effect.orDie), or Effect.fn(function*(){ ... }, Effect.orDie).

This repeated Effect.orDie site participates in the hoistable generator-wide orDie.
EK38102effecttsgo/redundantSchemaTagIdentifiersuggestionIdentifier '{0}' is redundant since it equals the _tag value.
EK38103effecttsgo/returnEffectInGensuggestionThis generator returns an Effect-able value directly, which produces a nested Effect<Effect<...>>. If the intended result is the inner Effect value, return yield* represents that form.
EK38104effecttsgo/runEffectInsideEffectsuggestion{0} is called inside an existing Effect context. Here, the inner Effect can be used directly.

{0} is called inside an Effect with a separate runtime invocation. In this context, run child Effects with the surrounding runtime, which can be accessed through Effect.runtime and Runtime.{1}.

{0} is called inside an Effect with a separate services invocation. In this context, child Effects run with the surrounding services, which can be accessed through Effect.context and Effect.{1}With.
EK38105effecttsgo/runOfExitToRunExitsuggestionEffect.{0} of Effect.exit re-implements Effect.{1}. Use the dedicated Exit runner directly.
EK38106effecttsgo/schemaClassMissingBrandsuggestionAdd { readonly brand: unique symbol } as the second type argument. Without a brand, TypeScript may accept structurally compatible values where this class instance type is expected.
EK38107effecttsgo/schemaClassObjectLiteralwarningThis object literal is checked as an instance of Schema class '{0}' but has no class prototype. instanceof checks, methods, and Schema encoding can fail. Use '{0}.make(...)' or 'new {0}(...)' instead.
EK38108effecttsgo/schemaLiteralNonFiniteerrorSchema literal values must be finite numbers; {0} throws during schema construction. Use a finite literal or model non-finite values with a refined Schema.Number.
EK38109effecttsgo/schemaNumbersuggestionThis Schema number API accepts NaN, Infinity, and -Infinity. Use {0} for finite domain numbers. If non-finite values are intentional, disable this diagnostic for that line.
EK38110effecttsgo/schemaOpaqueInstanceMembererrorClasses extending Schema.Opaque must not declare instance members.
EK38111effecttsgo/schemaStructWithTagsuggestionThis Schema.Struct includes a _tag field. Schema.TaggedStruct is the tagged-struct form for this pattern and makes the tag optional in the constructor.
EK38112effecttsgo/schemaSyncoff{0} executes synchronously. Use Schema.{1} to compose this operation through Effect without throwing.
EK38113effecttsgo/schemaSyncInEffectsuggestion{0} is used inside an Effect generator. Schema.{1} preserves the typed Effect error channel for this operation without throwing.
EK38114effecttsgo/schemaUnionOfLiteralsoffThis Schema.Union contains multiple Schema.Literal members and can be simplified to a single Schema.Literal call.
EK38115effecttsgo/scopeInLayerEffectwarningThis layer construction leaves Scope in the requirement set. The scoped API removes Scope from the resulting requirements.
EK38116effecttsgo/serviceNotAsClassoffContext.Service is assigned to a variable here, but this API is intended for a class declaration shape such as {0}.
EK38117effecttsgo/strictBooleanExpressionsoffUnexpected {0} type in condition, expected strictly a boolean instead.
EK38118effecttsgo/strictEffectProvideoffEffect.provide with a Layer should only be used at application entry points. If this is an entry point, you can safely disable this diagnostic. Otherwise, using Effect.provide may break scope lifetimes. Compose all layers at your entry point and provide them at once.
EK38119effecttsgo/syncToSucceedsuggestionEffect.succeed expresses this constant value more directly than Effect.sync.
EK38120effecttsgo/timeoutCatchTagToTimeoutOrElsesuggestionUse Effect.{0} to handle this timeout directly.
EK38121effecttsgo/tryCatchInEffectGensuggestionThis Effect generator contains try/catch; in this context, error handling is expressed with Effect APIs such as Effect.try, Effect.tryPromise, Effect.catch, Effect.catchTag).
EK38122effecttsgo/unknownInEffectCatchwarningThe catch callback in {0} returns unknown, so the Effect error type stays untyped. A specific typed error preserves error-channel information, for example by narrowing the value or wrapping it in Data.TaggedError.
EK38123effecttsgo/unnecessaryArrowBlockoffThis arrow function block only returns an expression and can use a concise body.
EK38124effecttsgo/unnecessaryEffectGensuggestionThis Effect.gen contains a single return statement.
EK38125effecttsgo/unnecessaryFailYieldableErrorsuggestionThis yield* Effect.fail(...) passes a yieldable error value. yield* represents that value directly without wrapping it in Effect.fail.
EK38126effecttsgo/unnecessaryPipesuggestionThis pipe call contains no arguments.
EK38127effecttsgo/unnecessaryPipeChainsuggestionThis expression contains chained pipe calls that can be simplified to a single pipe call.
EK38128effecttsgo/unnecessaryTypeofTypesuggestionThis typeof ... .Type query can be replaced with {0}.
EK38129effecttsgo/unsafeEffectTypeAssertionoffThis type assertion unsafely narrows the error or requirements channels.

The {0} channel is narrowed from {1} to {2}.
EK38130effecttsgo/unstableApiUsagewarning{0} is an unstable API. Breaking changes may happen between versions.