Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Lint does not enforce index.ts boundaries for cleanup/, routing/, warm-pool/ and contract/ helpers

未关闭 适合新手
#445 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
eslint, typescript
领域
tooling

调研方向

从 .oxlintrc.json 和现有的架构规则 14 模式入手。检查 src/core/domain.ts、src/core/doctor.ts、src/leasing/lease-acquisition-coordinator.ts、src/gateway/routing/request-match.ts 和 src/cli/index.ts 中列出的导入,然后运行 pnpm lint。当 lint 拒绝所列组件中越过 index.ts 的内部访问以及较旧的契约导入时,即为完成。

由索引模型根据 Issue 内容生成。

描述

bug:new

What happens

Architecture rule 14 says pnpm lint enforces that no file outside a directory component imports past its index.ts. .oxlintrc.json has no pattern for src/core/cleanup/, src/gateway/routing/ or src/core/warm-pool/, so a new reach-in such as ./cleanup/types.js from src/core/reaper.ts passes lint.

Also, older imports reach past src/contract/index.ts to contract/os-range.js / contract/duration.js (src/core/domain.ts:1, src/core/doctor.ts:2, src/leasing/lease-acquisition-coordinator.ts:8, src/gateway/routing/request-match.ts:7, src/cli/index.ts:60), and lint does not catch them.

Expected

Lint fails a reach-in into any directory component that has an index.ts.

Found in review of PR #444 (notes, not blocking there).

Written by an agent.

主要语言
TypeScript
星标
19
派生
1
平均合并
6 小时 31 分钟
30 天内合并 PR
194

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstackincubator/simlock 的其他 Issue

查看 callstackincubator/simlock 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。