Format all READMEs with Prettier (#100310)
## What? Anchors the `readme.md` rule in `.prettierignore` to the root symlink (`/readme.md`) and formats every README with Prettier, so that README files are covered by `pnpm prettier-check` and lint-staged. ## Why? The `readme.md` entry was meant for the root `readme.md` symlink. It isn't anchored, and Prettier matches ignore patterns case-insensitively, so it excluded every `README.md` in the repo (over 300 files). Those files were never format-checked, and about two dozen had drifted. ## How? - Anchors the entry as `/readme.md`, so it lists only the root symlink alongside the other `# Symlink files` entries and no longer matches nested READMEs. The entry documents the symlink rather than changing behavior: Prettier already skips symlinks when it expands a directory such as `prettier --check .`. The symlink's target, `packages/next/README.md`, is now formatted directly. - Runs Prettier 3.6.2 over all tracked README files. The changes are formatting only: - padding table separator rows - adding blank lines before lists and code blocks - changing `*emphasis*` to `_emphasis_` and `*` bullets to `-` - normalizing list indentation - removing one optional semicolon from a fenced JS example - No wording, links or code samples change in meaning. ## Verification - `npx --yes prettier@3.6.2 --check .` passes, as it did before the change. - Every tracked README passes `prettier --check`, and `--file-info` reports READMEs as no longer ignored. - `git diff --ignore-all-space --ignore-blank-lines` shows only Markdown normalization. <!-- NEXT_JS_LLM --> <!-- fleet 9072af3c-95f7-4175-a93d-5b232fe92150 --> --------- Co-authored-by:vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment