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 小時 11 分鐘
- 30 天內合併 PR
- 330
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
codercops/chatcops 的其他 Issue
-
Ingest: a crawl source for sites without a sitemap可能已有人在做 @bhushan4work 於 1 天前認領。 未關閉enhancement
codercops/chatcops#586 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
fix(core): Cohere and Voyage rerankers bypass non-positive limit check on NaN topN and send invalid null payload可能已有人在做 @bhushan4work 於 3 天前認領。 未關閉bug core
codercops/chatcops#582 · 3 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Widget: a code block tagged `c++`, `c#` or `objective-c` shows part of the tag as code可能已有人在做 @prakashNalla 於 3 天前認領。 未關閉bug widget
codercops/chatcops#578 · 2 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Docs: Astro, Nuxt and SvelteKit guides for the server可能已有人在做 @anurag2787 於 4 天前認領。 未關閉documentation
codercops/chatcops#575 · 2 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Server: chatcopsNext(), one catch-all route for Next.js可能已有人在做 @Saifjafri212213 於 4 天前認領。 未關閉enhancement server
codercops/chatcops#574 · 2 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 codercops/chatcops 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 65/100
shoelace-style/webawesome#2979 ·
維護者通常 1 天內回覆
-
Chip source filter and denial markers miss Storage rows when a Storage activity source is picked未關閉bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 73/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
omdsh-dev/DSH-better-sidebar#1141 ·
維護者通常 2 天內回覆