Add Biome for linting and wire up `pnpm lint`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 72/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, typescript
调研方向
Read the root package.json, .editorconfig, existing source under packages//src and packages//tests, website/src, and .github/workflows/ci.yml. Check the existing code style before configuring Biome, then run pnpm lint and review its diff for formatting-only changes. Done means lint passes locally and in CI, with only lint fixes outside the named configuration, package, lockfile, and CI files.
由索引模型根据 Issue 内容生成。
描述
The root package.json has "lint": "pnpm -r lint" (line 12), but no package defines a lint script, so it does nothing. There is no linter or formatter config in the repo, only .editorconfig.
What to do
- Add Biome as a root dev dependency with a
biome.jsonthat matches the current style: 2 spaces, single quotes, semicolons, trailing commas where the code already uses them. Turn on the recommended lint rules. - Make
pnpm lintrunbiome checkoverpackages/*/src,packages/*/testsandwebsite/src. - Fix what the linter reports. Don't reformat lines that only differ in formatting: set the formatter to match the existing code instead, so the diff stays small.
- Add a lint step to
.github/workflows/ci.yml.
Acceptance criteria
-
pnpm lintpasses ondevand runs in CI - The PR diff outside
biome.json,package.json, the lockfile and CI is lint fixes only, with no formatting-only changes - No changeset needed unless a lint fix changes behavior
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #<this issue number>. Setup notes (pnpm, build before test) are in CONTRIBUTING.md.
- 主要语言
- TypeScript
- 星标
- 13
- 派生
- 7
- 平均合并
- 3 小时 41 分钟
- 30 天内合并 PR
- 155
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codercops/chatcops 的其他 Issue
-
Document the pre-chat form可能已有人在做 @masyarakatai 于 5 天前认领。 未关闭documentation good first issue hacktoberfest widget
难度 2/5 1-3 小时 新手友好度 88/100
codercops/chatcops#70 · 5 条评论 ·
维护者通常 1 天内回复
-
docs: update the providers page for openai-compatible, registerProvider and provider imports可能已有人在做 @prakashNalla 今天认领。 未关闭documentation good first issue hacktoberfest website
难度 3/5 1-2 天 新手友好度 76/100
codercops/chatcops#291 · 1 条评论 ·
维护者通常 1 天内回复
-
docs: add a protocol reference page for custom clients可能已有人在做 @kachamsiddarth 今天认领。 未关闭documentation good first issue hacktoberfest website
codercops/chatcops#286 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Create @chatcops/store-cloudflare (D1, KV and a Durable Object counter)可能已有人在做 @bhushan4work 今天认领。 未关闭enhancement hacktoberfest help wanted server
难度 5/5 一周以上 新手友好度 25/100
codercops/chatcops#249 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Create @chatcops/store-sqlite, a store for single-server setups可能已有人在做 @srikar-naidu 今天认领。 未关闭enhancement hacktoberfest help wanted server
难度 5/5 一周以上 新手友好度 35/100
codercops/chatcops#247 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 codercops/chatcops 的全部 Issue
相似的 Issue
-
Add: Pbs Kids未关闭check:passed streams:add
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 2 天内回复
-
maintanance
难度 2/5 1-3 小时 新手友好度 76/100
inmanta/web-console#7583 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
deltachat/deltachat-desktop#6881 · 1 条评论 ·
维护者通常 3 天内回复
-
[Bug Report][3.13.7] VDataTable with select-strategy="single" shows select-all checkbox in mobile mode可能已有人在做 @lazerg 今天认领。 未关闭S: triage
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
phivk/rubiks-lab#33 ·
维护者通常 1 天内回复