Repository navigation
refactor: effect/prefer-namespace-imports on, at error - #594
Merged
Merged
Conversation
|
7 of 8 tasks
thomasfosterau
force-pushed
the
lint-prefer-namespace-imports
branch
2 times, most recently
from
November 12, 2026 05:05
c20a7c6 to
926f1a2
Compare
Rename local aliases to the rule's table (Record R, Predicate P, Equal Eq, Array Arr) and rename colliding resource/requirements type parameters. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y5G6PMempKsgjiV1NDcCJY
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y5G6PMempKsgjiV1NDcCJY
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y5G6PMempKsgjiV1NDcCJY
thomasfosterau
force-pushed
the
lint-prefer-namespace-imports
branch
from
November 12, 2026 05:19
926f1a2 to
e9d4bf4
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y5G6PMempKsgjiV1NDcCJY # Conflicts: # examples/blog/test/blog.test.ts # src/Resource.filter.test.ts # src/internal/codecs.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y5G6PMempKsgjiV1NDcCJY
This was referenced Nov 12, 2026
Rename the remaining resource type parameters R → Res (they shadow effect's Record namespace
R)
#622
Closed
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. Turns
effect/prefer-namespace-importson aterror(owner decision, family-wide: use the rule's own aliases) and fixes all 52 sites. PR #590 already moved every effect import toimport * as X from "effect/X"; this renames the local aliases.The rule's alias table (
@enfect/oxlintdist/index.js,CANONICAL_ALIASES):OptionandSchemakeep their full names.Changes:
Rec->R(effect/Record),Predicate->P,Equal->Eq;src/Group.tsimport type { NonEmptyReadonlyArray } from "effect/Array"->import type * as Arr.R->Res(Handlers, Query, includeGraph, sparse, Conformance.test), requirements parameterR->Req(Handlers.IncludeTarget), mapped/inferP->Prop/Paths/Pay, test localsconst R->resinResource.filter.test.ts. Type-parameter names are not part of a type's identity, so no published declaration changes meaning.vite.config.ts: removed theoffline and its comment; rewrote theno-unsafe-dictionary-typecomment (chore: lintno-unsafe-dictionary-typemisses sites in files that import effect'sRecord#275): never bind effect's Record asRecord; spelledR, the alias the rule requires.Counts (
vp lint, per rule):prefer-namespace-imports0 -> 0 reported aterror(52 sites when first flipped, all fixed);no-unsafe-dictionary-type83 -> 83 (nothing hidden); total warnings 5145 -> 5145, no per-rule delta.Verification
pnpm install --frozen-lockfilepassvp run buildpassvp checkpass (0 errors, 5145 warnings, unchanged)vp run checkpassvp run -r test:unitpassvp run docgenpassvp run test:coveragepass;vp exec fallow audit --base origin/trunkpass (no issues in changed files)Changeset
None: internal rename only; emitted declarations do not change meaning.
Notes
No exported signatures change beyond type-parameter names.
Generated by Claude Code