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.
| Code | Rule | Default | Messages and repair advice |
|---|---|---|---|
EK3802 | effecttsgo/abortControllerInEffect | suggestion | AbortController is manually constructed inside Effect code. Use Effect.abortSignal for Effect-managed cancellation. |
EK3803 | effecttsgo/acquireReleaseDisposable | suggestion | Effect.acquireDisposable expresses this disposable resource acquisition more directly than Effect.acquireRelease with a manual disposal finalizer. |
EK3804 | effecttsgo/allOfMapToForEach | suggestion | Effect.forEach expresses this effectful array mapping more directly than Effect.all over Array#map. |
EK3805 | effecttsgo/anyUnknownInErrorContext | off | {0} |
EK3806 | effecttsgo/apiStabilityLeak | off | {0} exposes {1}, an {2} API.{0} is declared {1} here. |
EK3807 | effecttsgo/asyncFunction | off | This code declares an async function, consider representing this async control flow with Effect values and Effect.gen. |
EK3808 | effecttsgo/catchAllTagDispatchToCatchTag | suggestion | Branching on {0}._tag inside Effect.{1} hand-rolls tagged error dispatch; use Effect.catchTag or Effect.catchTags, which re-fail unmatched errors automatically. |
EK3809 | effecttsgo/catchAllToMapError | suggestion | Effect.mapError expresses the same error-type transformation more directly than Effect.{0} followed by Effect.fail. |
EK3810 | effecttsgo/catchChainToFirstSuccessOf | suggestion | Chained 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. |
EK3811 | effecttsgo/catchConditionalRefailToCatchIf | suggestion | Effect.{2} expresses selective recovery more directly than Effect.{0} with a conditional Effect.{1} passthrough. |
EK3812 | effecttsgo/catchDieToOrDie | suggestion | Effect.orDie expresses escalating every typed failure into a defect more directly than Effect.{0} with an identity-forwarding Effect.die handler. |
EK3813 | effecttsgo/catchIfTagToCatchTag | suggestion | Effect.catchTag expresses tagged error recovery more directly than Effect.catchIf with a _tag equality predicate. |
EK3814 | effecttsgo/catchRefailToTapError | suggestion | Use Effect.tapError to observe the error and preserve the original failure without having to re-fail it. |
EK3815 | effecttsgo/catchTagToCatchReason | suggestion | Branching on {0}.reason._tag inside Effect.{1} hand-rolls reason dispatch; use Effect.catchReason or Effect.catchReasons, which re-fail unmatched reasons automatically. |
EK3816 | effecttsgo/catchToIgnore | suggestion | Effect.{1} expresses ignored failure more directly than Effect.{0} returning Effect.void. |
EK3817 | effecttsgo/catchToOrElseSucceed | suggestion | Effect.orElseSucceed expresses the same recovery more directly than Effect.{0} followed by Effect.succeed. |
EK3818 | effecttsgo/catchUnfailableEffect | suggestion | The previous Effect does not fail, so this error-handling branch will never run. |
EK3819 | effecttsgo/classSelfMismatch | error | The Self type parameter for this class should be {0}. |
EK3820 | effecttsgo/cryptoRandomUUID | off | This code uses crypto.randomUUID(), prefer the Effect Crypto module instead. |
EK3821 | effecttsgo/cryptoRandomUUIDInEffect | off | This Effect code uses crypto.randomUUID(), prefer the Effect Crypto module instead. |
EK3822 | effecttsgo/deterministicKeys | off | This key does not match the deterministic key for this declaration. The expected key is {0}. |
EK3823 | effecttsgo/duplicatePackage | warning | Multiple 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}. |
EK3824 | effecttsgo/effectDoNotation | off | This uses the Effect do emulation. Effect.gen or Effect.fn achieve the same result with native JS scopes. |
EK3825 | effecttsgo/effectFnIife | warning | {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}. |
EK3826 | effecttsgo/effectFnImplicitAny | error | Parameter {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. |
EK3827 | effecttsgo/effectFnOpportunity | suggestion | This expression can be rewritten in the reusable function form {0}. |
EK3828 | effecttsgo/effectGenUsesAdapter | warning | The adapter of Effect.gen is not required anymore, it is now just an alias of pipe. |
EK3829 | effecttsgo/effectInFailure | warning | The error channel contains an Effect ({0}). Putting Effect computations in the failure channel is not intended; keep only failure types there. |
EK3830 | effecttsgo/effectInVoidSuccess | warning | There is a nested '{0}' in the 'void' success channel, beware that this could lead to nested Effect<Effect<...>> that won't be executed. |
EK3831 | effecttsgo/effectMapFlatten | suggestion | Effect.map + Effect.flatten is the same as Effect.flatMap that expresses the same steps more directly. |
EK3832 | effecttsgo/effectMapVoid | suggestion | This expression discards the success value through mapping. Effect.asVoid represents that form directly. |
EK3833 | effecttsgo/effectSleepZeroToYieldNow | suggestion | Consider Effect.yieldNow for cooperative yielding instead of sleeping for zero duration. |
EK3834 | effecttsgo/effectSucceedWithVoid | suggestion | Effect.void represents the same outcome as Effect.succeed(undefined) or Effect.succeed(void 0). |
EK3835 | effecttsgo/errorPayloadShadowsName | suggestion | The 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. |
EK3836 | effecttsgo/experimentalApiUsage | warning | {0} is an experimental API. |
EK3837 | effecttsgo/extendsNativeError | off | This class extends the native Error type directly. Untagged native errors lose distinction in the Effect failure channel. |
EK3838 | effecttsgo/flatMapConditionalToFilterOrFail | suggestion | Effect.{0} expresses this conditional validation more directly than Effect.flatMap with an identity Effect.succeed branch. |
EK3839 | effecttsgo/flatMapIgnoredParamToAndThen | suggestion | Effect.andThen expresses this sequencing more directly than Effect.flatMap with a zero-parameter callback. |
EK3840 | effecttsgo/flatMapToMap | suggestion | Effect.map expresses this success-value transformation more directly than Effect.flatMap followed by Effect.succeed. |
EK3841 | effecttsgo/flatMapToTap | suggestion | Effect.tap expresses this observation more directly than Effect.{0} with a manual re-yield. |
EK3801 | effecttsgo/floatingEffect | error | This Effect value is neither yielded nor used in an assignment. This Effect-able {0} value is neither yielded nor assigned to a variable. |
EK3842 | effecttsgo/floatingEffectInVitest | error | This Vitest callback returns an Effect that Vitest does not run. Use an Effect-aware test API or run the Effect with Effect.runPromise. |
EK3843 | effecttsgo/genericEffectServices | warning | Effect Services with type parameters are not supported because they cannot be properly discriminated at runtime, which may cause unexpected behavior. |
EK3844 | effecttsgo/globalConsole | off | This code uses console.{1}, the corresponding Effect logging API is {0}. |
EK3845 | effecttsgo/globalConsoleInEffect | off | This Effect code uses console.{1}, logging in Effect code is represented through {0}. |
EK3846 | effecttsgo/globalDate | off | This 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. |
EK3847 | effecttsgo/globalDateInEffect | off | This 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. |
EK3848 | effecttsgo/globalErrorInEffectCatch | warning | The 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. |
EK3849 | effecttsgo/globalErrorInEffectFailure | warning | Global '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. |
EK3850 | effecttsgo/globalFetch | off | This code uses the global fetch function, HTTP requests are represented through HttpClient from {0}. |
EK3851 | effecttsgo/globalFetchInEffect | off | This Effect code calls the global fetch function, HTTP requests in Effect code are represented through HttpClient from {0}. |
EK3852 | effecttsgo/globalRandom | off | This code uses Math.random(), randomness is represented through the Effect Random service. |
EK3853 | effecttsgo/globalRandomInEffect | off | This Effect code uses Math.random(), randomness is represented through the Effect Random service. |
EK3854 | effecttsgo/globalTimers | off | This code uses {1}, the corresponding Effect timer API is {0} from Effect. |
EK3855 | effecttsgo/globalTimersInEffect | off | This Effect code uses {1}, the corresponding timer API in this context is {0} from Effect. |
EK3856 | effecttsgo/instanceOfSchema | off | This code uses instanceof with an Effect Schema type. Schema.is is the schema-aware runtime check for this case. |
EK3857 | effecttsgo/layerMergeAllWithDependencies | warning | This 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. |
EK3858 | effecttsgo/lazyEffect | suggestion | {0} returns a lazy {1}. {1} is already lazy, so wrapping it in a zero-argument function adds unnecessary indirection. |
EK3859 | effecttsgo/lazyPromiseInEffectSync | warning | This Effect.sync thunk returns a Promise. Use Effect.promise or Effect.tryPromise to represent async work. |
EK3860 | effecttsgo/leakingRequirements | suggestion | Methods 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 |
EK3861 | effecttsgo/mapSomeToAsSome | suggestion | Effect.asSome expresses wrapping the success value in Option.some directly. |
EK3862 | effecttsgo/matchEffectToMapBoth | suggestion | Effect.mapBoth expresses these failure and success transformations more directly than Effect.matchEffect. |
EK3863 | effecttsgo/matchEffectToMatch | suggestion | Effect.{0} expresses this non-effectful fold more directly than Effect.{1} with Effect.succeed handlers. |
EK3864 | effecttsgo/missedPipeableOpportunity | off | This nested call structure has a pipeable form. {0}.pipe(...) represents the same call sequence in pipe style and may be easier to read. |
EK3865 | effecttsgo/missingEffectContext | error | This 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}. |
EK3866 | effecttsgo/missingEffectError | error | Missing errors {0} in the expected Effect type. |
EK3867 | effecttsgo/missingEffectServiceDependency | off | Service '{0}' is required but not provided by dependencies. Services {0} are required but not provided by dependencies. |
EK3868 | effecttsgo/missingLayerContext | error | Missing '{0}' in the expected Layer context. |
EK3869 | effecttsgo/missingPipeableSignature | off | Exported function {0} has no pipeable overload corresponding to its signature {1}. |
EK3870 | effecttsgo/missingReturnYieldStar | error | This Effect never succeeds; using return yield* preserves a definitive generator exit point for type narrowing and tooling support. |
EK3871 | effecttsgo/missingStarInYieldEffectGen | error | Inside this Effect generator. This uses yield for an Effect value. yield* is the Effect-aware form in this context. |
EK3872 | effecttsgo/multipleCatchTag | suggestion | These {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. |
EK3873 | effecttsgo/multipleEffectProvide | warning | This 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. |
EK3874 | effecttsgo/nestedEffectGenYield | off | This yield* is applied to a nested Effect.gen(...) that can be inlined in the parent Effect generator context. |
EK3875 | effecttsgo/newPromise | off | This code constructs new Promise(...), prefer Effect APIs such as Effect.async, Effect.promise, or Effect.tryPromise instead of manual Promise construction. |
EK3876 | effecttsgo/newSchemaClass | off | This Schema class is constructed with new. {0}.make(...) can be used to construct the Schema class instance. |
EK3877 | effecttsgo/nodeBuiltinImport | off | This module reference uses the {2} module, the corresponding Effect API is {0} from {1}. |
EK3878 | effecttsgo/nonObjectEffectServiceType | error | Effect.Service is declared with a primitive service type. Effect.Service models object-shaped services; primitive values use Context.Tag or Effect.Tag directly. |
EK3879 | effecttsgo/obsoleteMatchImport | warning | This 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). |
EK3880 | effecttsgo/obsoleteSchemaImport | warning | This module reference imports {0}, which is obsolete in Effect v4. In Effect v4, Schema is provided directly by Schema from effect (or effect/Schema). |
EK3881 | effecttsgo/optionMatchToFromOption | suggestion | Effect.fromOption expresses this Option-to-Effect conversion more directly than Option.match or an Option tag conditional. |
EK3882 | effecttsgo/outdatedApi | warning | This 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. |
EK3883 | effecttsgo/overriddenSchemaConstructor | error | This 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. |
EK3884 | effecttsgo/preferBarrelImport | off | '{0}' is imported directly, but barrelImportPackages expects named imports from the barrel '{1}'. Use '{2}' instead. |
EK3885 | effecttsgo/preferEffectArray | off | Consider effect/Array.{0} instead of native Array.{1}. {2} |
EK3886 | effecttsgo/preferEffectRecord | off | Consider effect/Record.{0} instead of native {1}. {2} |
EK3887 | effecttsgo/preferEffectString | off | Consider effect/String.{0} instead of native String.{1}. {2} |
EK3888 | effecttsgo/preferNamespaceImport | off | '{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}'. |
EK3889 | effecttsgo/preferSchemaOverJson | off | This code uses JSON.parse or JSON.stringify. {0} |
EK3890 | effecttsgo/preferSchemaTaggedError | off | Prefer Schema.TaggedError over Data.TaggedError for an explicit schema contract. |
EK3891 | effecttsgo/preferSchemaTypeProperty | off | Do not use Schema.Schema.Type<typeof X> to extract a schema's type. Use typeof X.Type instead. |
EK3892 | effecttsgo/preferSucceedSomeOrNone | suggestion | Effect.{0} expresses this Option success value directly. |
EK3893 | effecttsgo/preferTypedSchemaDecoder | suggestion | This 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}. |
EK3894 | effecttsgo/preferUnsafeConstructor | suggestion | {0} starts a fiber to run a pure constructor. Use the synchronous variant {1} instead. |
EK3895 | effecttsgo/processEnv | off | This code reads from process.env, environment configuration is represented through Config from Effect. |
EK3896 | effecttsgo/processEnvInEffect | off | This Effect code reads from process.env, environment configuration in Effect code is represented through Config from Effect. |
EK3897 | effecttsgo/promiseInEffectSuccess | warning | The Effect success channel contains a Promise that is not awaited. Use Effect.promise or Effect.tryPromise to represent async work. |
EK3898 | effecttsgo/provideLayerSucceedToProvideService | suggestion | Effect.{0} provides this inline single-service layer directly. |
EK3899 | effecttsgo/raceFirstWithSleepToTimeout | suggestion | This Effect first-completion race has exactly one sleep- or delay-based timer arm. Effect.timeoutOrElse expresses the timeout and fallback directly. |
EK38100 | effecttsgo/redundantMapError | suggestion | This 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. |
EK38101 | effecttsgo/redundantOrDie | suggestion | This 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. |
EK38102 | effecttsgo/redundantSchemaTagIdentifier | suggestion | Identifier '{0}' is redundant since it equals the _tag value. |
EK38103 | effecttsgo/returnEffectInGen | suggestion | This 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. |
EK38104 | effecttsgo/runEffectInsideEffect | suggestion | {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. |
EK38105 | effecttsgo/runOfExitToRunExit | suggestion | Effect.{0} of Effect.exit re-implements Effect.{1}. Use the dedicated Exit runner directly. |
EK38106 | effecttsgo/schemaClassMissingBrand | suggestion | Add { 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. |
EK38107 | effecttsgo/schemaClassObjectLiteral | warning | This 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. |
EK38108 | effecttsgo/schemaLiteralNonFinite | error | Schema 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. |
EK38109 | effecttsgo/schemaNumber | suggestion | This 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. |
EK38110 | effecttsgo/schemaOpaqueInstanceMember | error | Classes extending Schema.Opaque must not declare instance members. |
EK38111 | effecttsgo/schemaStructWithTag | suggestion | This Schema.Struct includes a _tag field. Schema.TaggedStruct is the tagged-struct form for this pattern and makes the tag optional in the constructor. |
EK38112 | effecttsgo/schemaSync | off | {0} executes synchronously. Use Schema.{1} to compose this operation through Effect without throwing. |
EK38113 | effecttsgo/schemaSyncInEffect | suggestion | {0} is used inside an Effect generator. Schema.{1} preserves the typed Effect error channel for this operation without throwing. |
EK38114 | effecttsgo/schemaUnionOfLiterals | off | This Schema.Union contains multiple Schema.Literal members and can be simplified to a single Schema.Literal call. |
EK38115 | effecttsgo/scopeInLayerEffect | warning | This layer construction leaves Scope in the requirement set. The scoped API removes Scope from the resulting requirements. |
EK38116 | effecttsgo/serviceNotAsClass | off | Context.Service is assigned to a variable here, but this API is intended for a class declaration shape such as {0}. |
EK38117 | effecttsgo/strictBooleanExpressions | off | Unexpected {0} type in condition, expected strictly a boolean instead. |
EK38118 | effecttsgo/strictEffectProvide | off | Effect.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. |
EK38119 | effecttsgo/syncToSucceed | suggestion | Effect.succeed expresses this constant value more directly than Effect.sync. |
EK38120 | effecttsgo/timeoutCatchTagToTimeoutOrElse | suggestion | Use Effect.{0} to handle this timeout directly. |
EK38121 | effecttsgo/tryCatchInEffectGen | suggestion | This 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). |
EK38122 | effecttsgo/unknownInEffectCatch | warning | The 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. |
EK38123 | effecttsgo/unnecessaryArrowBlock | off | This arrow function block only returns an expression and can use a concise body. |
EK38124 | effecttsgo/unnecessaryEffectGen | suggestion | This Effect.gen contains a single return statement. |
EK38125 | effecttsgo/unnecessaryFailYieldableError | suggestion | This yield* Effect.fail(...) passes a yieldable error value. yield* represents that value directly without wrapping it in Effect.fail. |
EK38126 | effecttsgo/unnecessaryPipe | suggestion | This pipe call contains no arguments. |
EK38127 | effecttsgo/unnecessaryPipeChain | suggestion | This expression contains chained pipe calls that can be simplified to a single pipe call. |
EK38128 | effecttsgo/unnecessaryTypeofType | suggestion | This typeof ... .Type query can be replaced with {0}. |
EK38129 | effecttsgo/unsafeEffectTypeAssertion | off | This type assertion unsafely narrows the error or requirements channels. The {0} channel is narrowed from {1} to {2}. |
EK38130 | effecttsgo/unstableApiUsage | warning | {0} is an unstable API. Breaking changes may happen between versions. |