Lint: enforce no-undef in oracle-gaps test files (a missing import reached a commit)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- eslint, javascript
调研方向
从仓库根目录的 ESLint 配置(以及 packages/oracles/ 下的任何配置)开始,查看当前哪些 overrides 应用于 packages/oracles/oracle-gaps/**,以及其他 package 如何声明 globals。为该 glob 添加一个 override,启用 no-undef,并声明 issue 中提到的 Node globals(process、structuredClone、clearTimeout),然后运行项目的 lint 脚本以收集发现项,包括提交 a489353 中对 posix/realPathOf 的使用。完成意味着 lint 报告缺失的 imports,而不是让该规则保持沉默。
由索引模型根据 Issue 内容生成。
描述
A driver file imported isWithin from paths.mjs but used posix and realPathOf without importing them. The reference was not caught by lint, so the first Arclet run failed with ReferenceError: posix is not defined. The project's lint config does not enable no-undef for these files (in TypeScript-aware configs the check is usually off, and the .mjs files lack a globals declaration that would make it precise). Node globals such as process, structuredClone, and clearTimeout would need declaring for the rule to be usable there.
Ask: enable no-undef (with the Node globals declared) for packages/oracles/oracle-gaps/** and report the findings, or name the rule that should catch this class. Not changed in #73, per the maintainers' request. Found while reviewing #73 (commit a489353).
- 主要语言
- JavaScript
- 星标
- 5
- 派生
- 1
- 平均合并
- 8 小时 31 分钟
- 30 天内合并 PR
- 60
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TanStack/oracles 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 46/100
维护者通常 1 天内回复
相似的 Issue
-
accepted enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
Bug: Unused media visibility check and missing useMemo dependencies cause stale/invalid actions in MessageToolbox.js可能已有人在做 @yashsarvaiya45 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
RocketChat/EmbeddedChat#1437 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复