Something went wrong. Try again.
Something went wrong. Try again.
machine-memory tsconfig.base.json
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196{ "$schema": "./node_modules/@effect/tsgo/schema.json", // Shared by every TypeScript workspace except docs (Astro has its own base). "compilerOptions": { "lib": ["ESNext", "DOM"], "target": "ESNext", "module": "Preserve", "moduleResolution": "Bundler", "strict": true, "noFallthroughCasesInSwitch": true, "noImplicitOverride": true, "noUncheckedIndexedAccess": true, "skipLibCheck": true, "noEmit": true, "plugins": [ { "name": "@effect/language-service", // `effect-tsgo tsrs --noEmit` reports these diagnostics in the same pass as // type errors. The plugin's exit policy stays at its default: errors and // warnings fail the typecheck, suggestions do not. Every rule below is set // explicitly so @effect/tsgo default changes cannot move the gate; rules // added upstream later start at their defaults. // Unstable Effect v4 modules this project depends on by design. Any other // unstable API fails unstableApiUsage. "allowedUnstableApis": [ "effect/cli", "effect/http", "effect/FileSystem", "effect/PlatformError", "@effect/platform-bun/BunRuntime", "@effect/platform-bun/BunServices" ], "diagnosticSeverity": { // Correctness: everything fails, with two exceptions, both off. anyUnknownInErrorContext: // CLI command handlers keep an unknown error channel by design // (cli/src/cli/runtime/command.ts). schemaClassMissingBrand: see below. "anyUnknownInErrorContext": "off", "classSelfMismatch": "error", "duplicatePackage": "error", "effectFnImplicitAny": "error", "errorPayloadShadowsName": "error", "experimentalApiUsage": "error", "floatingEffect": "error", "floatingEffectInVitest": "error", "genericEffectServices": "error", "missingEffectContext": "error", "missingEffectError": "error", "missingLayerContext": "error", "missingReturnYieldStar": "error", "missingStarInYieldEffectGen": "error", "nonObjectEffectServiceType": "error", "obsoleteMatchImport": "error", "obsoleteSchemaImport": "error", "outdatedApi": "error", "overriddenSchemaConstructor": "error", "promiseInEffectSuccess": "error", // Off: every hit is a Schema.TaggedError, which `_tag` already discriminates. "schemaClassMissingBrand": "off", "schemaClassObjectLiteral": "error", "schemaLiteralNonFinite": "error", "schemaOpaqueInstanceMember": "error", "unsafeEffectTypeAssertion": "error", "unstableApiUsage": "error",
// Anti-patterns: everything fails. strictEffectProvide stays off because // entry points (Workers, CLI main) provide their layers by design. "catchUnfailableEffect": "error", "effectFnIife": "error", "effectGenUsesAdapter": "error", "effectInFailure": "error", "effectInVoidSuccess": "error", "globalErrorInEffectCatch": "error", "globalErrorInEffectFailure": "error", "layerMergeAllWithDependencies": "error", "lazyEffect": "error", "lazyPromiseInEffectSync": "error", "leakingRequirements": "error", "multipleEffectProvide": "error", "preferUnsafeConstructor": "error", "returnEffectInGen": "error", "runEffectInsideEffect": "error", "schemaSyncInEffect": "error", "scopeInLayerEffect": "error", "strictEffectProvide": "off", "tryCatchInEffectGen": "error", "unknownInEffectCatch": "error",
// Effect-native inside Effect code: use Clock, Random, HttpClient, Config, etc. "abortControllerInEffect": "error", "cryptoRandomUUIDInEffect": "error", "globalDateInEffect": "error", "globalFetchInEffect": "error", "globalRandom": "error", "globalRandomInEffect": "error", "globalTimersInEffect": "error", "instanceOfSchema": "error", "processEnvInEffect": "error",
// Effect-native outside Effect code: off. Worker fetch handlers, the OAuth // flow, CLI output and Node/Bun entry points are platform boundaries. // globalConsoleInEffect stays off because CLI commands print their results. "asyncFunction": "off", "cryptoRandomUUID": "off", "extendsNativeError": "off", "globalConsole": "off", "globalConsoleInEffect": "off", "globalDate": "off", "globalFetch": "off", "globalJson": "off", "globalJsonInEffect": "off", "globalTimers": "off", "newPromise": "off", "nodeBuiltinImport": "off", "preferEffectArray": "off", "preferEffectRecord": "off", "preferEffectString": "off", "processEnv": "off", "schemaSync": "off",
// Style: mechanical simplifications fail. Kept as a suggestion: effectFnOpportunity // (taste). Off: // import-style and service-shape rules that conflict with each other or the // codebase, and rules with hundreds of hits (strictBooleanExpressions, // missingPipeableSignature, newSchemaClass, deterministicKeys). "acquireReleaseDisposable": "error", "allOfMapToForEach": "error", "catchAllTagDispatchToCatchTag": "error", "catchAllToMapError": "error", "catchChainToFirstSuccessOf": "error", "catchConditionalRefailToCatchIf": "error", "catchDieToOrDie": "error", "catchIfTagToCatchTag": "error", "catchRefailToTapError": "error", "catchTagToCatchReason": "error", "catchToIgnore": "error", "catchToOrElseSucceed": "error", "deterministicKeys": "off", "effectDoNotation": "error", "effectFnOpportunity": "suggestion", "effectMapFlatten": "error", "effectMapVoid": "error", "effectSleepZeroToYieldNow": "error", "effectSucceedWithVoid": "error", "failCauseToConstructor": "error", "flatMapConditionalToFilterOrFail": "error", "flatMapIdentityToFlatten": "error", "flatMapIgnoredParamToAndThen": "error", "flatMapToMap": "error", "flatMapToTap": "error", "manualMetricTapToTrack": "error", "mapConstToAs": "error", "mapMapErrorToMapBoth": "error", "mapSomeToAsSome": "error", "matchEffectToMapBoth": "error", "matchEffectToMatch": "error", "missedPipeableOpportunity": "off", "missingEffectServiceDependency": "error", "missingPipeableSignature": "off", "multipleCatchTag": "error", "nestedEffectGenYield": "error", "newSchemaClass": "off", "optionMatchToFromOption": "error", "preferBarrelImport": "off", "preferNamespaceImport": "off", "preferSchemaTaggedError": "error", "preferSchemaTypeProperty": "error", "preferSucceedSomeOrNone": "error", "preferTypedSchemaDecoder": "error", "provideLayerSucceedToProvideService": "error", "raceFirstWithSleepToTimeout": "error", "redundantMapError": "error", "redundantOrDie": "error", "redundantSchemaTagIdentifier": "error", "runOfExitToRunExit": "error", "schemaNumber": "error", "schemaStructWithTag": "error", "schemaUnionOfLiterals": "error", "serviceNotAsClass": "off", "strictBooleanExpressions": "off", "syncToSucceed": "error", "timeoutCatchTagToTimeoutOrElse": "error", "unnecessaryArrowBlock": "off", "unnecessaryEffectGen": "error", "unnecessaryFailYieldableError": "error", "unnecessaryPipe": "error", "unnecessaryPipeChain": "error", "unnecessaryTypeofType": "error",
// Maintainers: library API stability; not relevant to an application. "apiStabilityLeak": "off" } } ] }}