chore: apply prettier globally and enforce it in CI (#834)
* chore: apply prettier formatting across the codebase
Apply `prettier --write` to all `{ts,tsx,js,jsx,mjs,cjs,json,md,yaml,yml}`
files in a single pass so the codebase matches the formatting enforced by
the pre-commit hook. This is a mechanical, whitespace-only change.
Closes #799 (formatting pass portion).
* ci: enforce prettier formatting in CI
Add a check_formatting job to apply_pr_checks.yaml that runs
`prettier --check` over the same file set the pre-commit hook formats,
via actions/setup-node (no Docker, so docker-compose.yaml is untouched).
Broaden the root `npm run format` script to the same
`{ts,tsx,js,jsx,mjs,cjs,json,md,yaml,yml}` glob so `npm run format`,
lint-staged, and CI all agree on scope.
Document the new job and its local reproduction command in AGENTS.md.
Closes #799 (CI enforcement portion).
* build: add prettier and prettier:fix scripts; use them in CI
Centralize the whole-repo Prettier glob into two root package.json scripts
so CI and local dev share one source of truth:
- `npm run prettier` -> prettier --check (used by the check_formatting CI job)
- `npm run prettier:fix` -> prettier --write
- `npm run format` -> alias of prettier:fix (kept for backwards compat)
CI now runs `npm run prettier` instead of duplicating the glob inline.
The pre-commit hook (lint-staged) intentionally keeps the scoped
`prettier --write` so it only touches staged files; using the whole-repo
glob there would reformat the entire codebase on every commit.
Update AGENTS.md, docs/development/local.md, and copilot-instructions.md
to reference the canonical script names.