Repository navigation
测试单:nav README「测试/校验」小节补命令说明(验证 Tony 评审) - #41
Merged
Merged
Conversation
Checkpoint: YFXS_nxw96ucvE0cYEdIR
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pnpm lint && pnpm format:check拆成两条命令,并为每条补一句说明,读者能一眼看出两者各做什么、失败意味着什么。package.json的真实脚本与biome.json的配置撰写:lint是biome lint .(recommended 规则,error 失败、warning 只提示),format:check是biome format .(只比对格式、不改文件),并注明自动重排要跑pnpm format。Changes
README.md(「测试 / 校验」命令块)pnpm lint独立成行,注释写明:Biome 代码检查,按biome.json的 recommended 规则查问题,有 error 即失败、warning 只提示(退出码仍为 0)。pnpm format:check独立成行,注释写明:Biome 格式检查,只比对缩进/引号/换行等是否合规、不改文件;需要自动重排时跑pnpm format。typecheck、test)对齐,保持命令块排版一致。Testing
pnpm lint:退出码 0,Checked 161 files,Found 30 warnings(均为仓库既有 warning,本次改动未新增)。pnpm format:check:退出码 0,Checked 158 files,0 处差异(纯 Markdown 改动不影响被格式化的文件)。biome lint遇 error 返回退出码 1、biome format对未格式化文件报差异且不改写文件——与新增注释的描述一致。build/test:改动仅为 Markdown 文本,不进入任何构建或测试输入;CI 将在本 PR 上跑完整五步校验。