Repository navigation
refactor: effect/use-clock-service to zero - #601
Merged
Merged
Conversation
|
thomasfosterau
enabled auto-merge
November 12, 2026 03:58
thomasfosterau
force-pushed
the
lint-use-clock-service
branch
from
November 12, 2026 04:56
fe3ef47 to
c4b2f26
Compare
Part of #533. Build dates through DateTime (makeUnsafe / nowUnsafe) instead of new Date / Date.parse; drop the warn line from vite.config.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y5G6PMempKsgjiV1NDcCJY
thomasfosterau
force-pushed
the
lint-use-clock-service
branch
from
November 12, 2026 05:08
c4b2f26 to
1ae0df8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of #533.
effect/use-clock-servicegoes from 72 sites to 0 and itswarnline is removed fromvite.config.ts, so the preset'serrorapplies. Every site wasnew Date(...)/Date.parsein example handlers, example tests, unit tests and one type test; each now builds its value throughDateTime(DateTime.toDateUtc(DateTime.makeUnsafe(...))for fixed instants,DateTime.nowUnsafe()for "now",DateTime.toEpochMillisfor the parse). Nosrc/code changed. No disable comments or overrides.Rule deltas from
vp lint:effect(use-clock-service)72 -> 0; no other rule changed.Verification
pnpm install --frozen-lockfile: passvp run build: passvp check: pass (0 errors; warnings are existing debt)vp run check: pass ("every type gate green")vp run -r test:unit: pass (root 3998 tests, examples 73 / 50 / 56)vp run docgen: passvp run test:coveragethenvp exec fallow audit --base origin/trunk: verdictwarn, 0 dead-code issues; the 7 complexity and 13 duplication findings are inherited (the gate excluded 19 inherited findings)Changeset
None: tests, examples and lint config only; no published behaviour changes.
.changeset/for every change to published behaviourNotes
prefer-namespace-importswas stilloffon trunk (PR #594 not merged), so the newDateTimeimports useimport * as DateTime from "effect/DateTime", matching the existing namespace style. Each file carries a small localat/nowhelper rather than a shared module, to avoid adding a file to the package's emitted declarations.Generated by Claude Code