chore: extend Prettier to docs, config, scripts and examples

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

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
领域
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 内容生成。

描述

enhancement good first issue hacktoberfest

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
  1. 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/.
  2. Run npm run format once and commit the result (formatting-only diff).
  3. Make sure npm run format:check passes 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

环境准备

从这里开始

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

SahinurDEV/ForgeData 的其他 Issue

查看 SahinurDEV/ForgeData 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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