Repository navigation
v0.14.0
Minor Changes
-
#31
8ef79e5Thanks @cevr! - Add ten rules to the recommended preset, all aterror:noModuleLevelMutableStatebans module-levelletandvaroutside test files; keep request-shared state in aRefowned by a Layer.noEagerAcquirebansEffect.acquireReleaseacquires that build or capture the resource before acquire runs (Effect.succeed(handle),Effect.sync(() => capturedHandle)).noEffectRunInTestsbansEffect.run*andManagedRuntime.makein test files; useit.effectorit.layer.requireSuppressionReasonrequires every oxlint, ESLint,@effect-diagnostics, and@ts-*suppression to name what it disables and give a reason after--, and rejectseffect/-prefixed@effect-diagnosticsrule names.- From anti-slop:
noArrayFilterMap,noReduceAccumulatorCopy,noReflectApply,noReflectGet, andnoUnknownReturns.
The vendored anti-slop rules now include upstream bug fixes through
c44ef22: lexical type alias resolution, literal-keyedRecords treated as closed,unknowndetected inside unions, type-guard subjects and promise rejection reasons exempt fromnoUnknownParameters,typeofexistence probes allowed, borrowedshapemembers allowed, type parameter constraints exempt fromnoUnsafeDictionaryType, and no semantics-changing autofix innoConditionalEmptyObjectSpread.