Repository navigation
🔧 config(prettier): 对齐 lint-md 1.0.1 与安全 git hooks - #161
Merged
Merged
Conversation
按 init-prettier-git-hooks 4.5.1 定点合并 Prettier、lint-staged 与 simple-git-hooks,替换会覆盖未暂存内容的 post-commit,并补上同仓 PR 格式化工作流。 Assisted-by: Cursor / Grok 4.7 Co-authored-by: Cursor <cursoragent@cursor.com>
This branch was successfully deployed
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
git restore --worktree换成注释掉的安全命令,post-commit 保持关闭。allowBuilds.simple-git-hooks设为false,避免依赖 postinstall 在安装时改写共享钩子。prepare未改。已有cloud-pr-prettier.yml的同仓写回、frozen install 与 fork 跳过条件已齐,未整文件覆盖。Test plan
simple-git-hooks.mjs的 post-commit 仍是注释,且字符串含--ignore-cr-at-eol、git cat-file blob、skip(含未提交改动)pnpm-workspace.yaml里simple-git-hooks: falsepackage.json的prepare仍是simple-git-hooksMade with Cursor