REPO_POLICIES.md says Markdown is formatted with prettier (default settings, four-space indents, proseWrap: always). bsdaily formats only Go: script/fmt runs go fmt and script/fmt-check runs gofmt -l, so README.md and TODO.md are never checked.
Definition of done
script/fmt also formats every Markdown file with prettier, and script/fmt-check fails when one is not formatted, writing nothing.
prettier comes from package.json and yarn.lock with exact versions, installed by script/bootstrap the way the canonical sneak/prompts scripts do it (pinned node via nvm from a hash-checked archive, yarn through corepack), and script/fmt and script/fmt-check find yarn the same way the canonical ones do. .prettierrc and .prettierignore are the canonical copies.
The vendored REPO_POLICIES.md is left as fetched (it goes in .prettierignore if prettier would change it).
The reformatting of the existing Markdown is its own commit in the PR, separate from the tooling change.
make check and script/cibuild pass on a fresh clone on a host carrying only docker and git.
`REPO_POLICIES.md` says Markdown is formatted with prettier (default settings, four-space indents, `proseWrap: always`). bsdaily formats only Go: `script/fmt` runs `go fmt` and `script/fmt-check` runs `gofmt -l`, so `README.md` and `TODO.md` are never checked.
## Definition of done
1. `script/fmt` also formats every Markdown file with prettier, and `script/fmt-check` fails when one is not formatted, writing nothing.
2. prettier comes from `package.json` and `yarn.lock` with exact versions, installed by `script/bootstrap` the way the canonical `sneak/prompts` scripts do it (pinned node via nvm from a hash-checked archive, yarn through corepack), and `script/fmt` and `script/fmt-check` find yarn the same way the canonical ones do. `.prettierrc` and `.prettierignore` are the canonical copies.
3. The vendored `REPO_POLICIES.md` is left as fetched (it goes in `.prettierignore` if prettier would change it).
4. The reformatting of the existing Markdown is its own commit in the PR, separate from the tooling change.
5. `make check` and `script/cibuild` pass on a fresh clone on a host carrying only docker and git.
Starts after https://git.eeqj.de/sneak/bsdaily/issues/1, which rewrites the same scripts.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
REPO_POLICIES.mdsays Markdown is formatted with prettier (default settings, four-space indents,proseWrap: always). bsdaily formats only Go:script/fmtrunsgo fmtandscript/fmt-checkrunsgofmt -l, soREADME.mdandTODO.mdare never checked.Definition of done
script/fmtalso formats every Markdown file with prettier, andscript/fmt-checkfails when one is not formatted, writing nothing.package.jsonandyarn.lockwith exact versions, installed byscript/bootstrapthe way the canonicalsneak/promptsscripts do it (pinned node via nvm from a hash-checked archive, yarn through corepack), andscript/fmtandscript/fmt-checkfind yarn the same way the canonical ones do..prettierrcand.prettierignoreare the canonical copies.REPO_POLICIES.mdis left as fetched (it goes in.prettierignoreif prettier would change it).make checkandscript/cibuildpass on a fresh clone on a host carrying only docker and git.Starts after #1, which rewrites the same scripts.
Model: opus-5-5