chore: extend Prettier to docs, config, scripts and examples
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 重构
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
- 领域
- tooling
调研方向
从 package.json 中的 format 和 format:check 脚本以及现有的 .prettierignore 开始。运行 npm run format,检查 .eslintrc.cjs 和 scripts/benchmark.ts 等文件中仅涉及格式调整的差异,然后运行 npm run format:check。检查通过且 CHANGELOG.md 和 docs/dist/output.css 等生成文件保持不变,即为完成。
由索引模型根据 Issue 内容生成。
描述
The format/format:check scripts only cover src/**/*.{ts,tsx} and tests/**/*.{ts,tsx}. Running Prettier over the rest of the repo shows several files are not formatted, e.g. .eslintrc.cjs, scripts/benchmark.ts, examples/node-esm.mjs (README.md and the community files were formatted in #11).
A .prettierignore already excludes generated files (CHANGELOG.md, dist, coverage, docs/dist, lockfiles).
What to do
- Widen the globs in
package.json, e.g.prettier --write ./prettier --check .(relying on.prettierignore), or explicit globs for*.{md,json,yml,cjs,mjs,ts},scripts/,examples/and.github/. - Run
npm run formatonce and commit the result (formatting-only diff). - Make sure
npm run format:checkpasses and nothing generated (CHANGELOG,docs/dist/output.css) gets reformatted.
PR title: chore: format docs, config, scripts and examples with Prettier.
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SahinurDEV/ForgeData 的其他 Issue
-
documentation good first issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 75/100
SahinurDEV/ForgeData#17 ·
-
enhancement good first issue hacktoberfest
难度 2/5 1-3 小时 新手友好度 82/100
SahinurDEV/ForgeData#15 ·
-
enhancement good first issue hacktoberfest help wanted
难度 3/5 1-2 天 新手友好度 78/100
SahinurDEV/ForgeData#12 ·
查看 SahinurDEV/ForgeData 的全部 Issue
相似的 Issue
-
clawsweeper:intake:bug clawsweeper:intake:needs-environment
难度 2/5 1-3 小时 新手友好度 82/100
openclaw/openclaw#212827 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Use one constant for the 10,000-character input limit可能已有人在做 @NginxL 今天认领。 未关闭good first issue refactor
难度 2/5 1-3 小时 新手友好度 78/100
aniru-dh21/snap-validate#51 ·
维护者通常 1 天内回复
-
dependencies effort: small good first issue priority: low
难度 1/5 1-3 小时 新手友好度 88/100
TMHSDigital/screencast-mcp#509 ·
维护者通常 1 天内回复
-
from-review tech-debt testing
难度 2/5 1-3 小时 新手友好度 82/100
blamechris/chroxy#9520 ·
维护者通常 1 天内回复