Skip to content

ci(docs.dig.net): add §2.4a Prettier format gate + strict lint (#1042) - #51

Merged
MichaelTaylor3d merged 3 commits into
mainfrom
ci/1042-prettier-gate
Jul 30, 2026
Merged

ci(docs.dig.net): add §2.4a Prettier format gate + strict lint (#1042)#51
MichaelTaylor3d merged 3 commits into
mainfrom
ci/1042-prettier-gate

Conversation

@MichaelTaylor3d

Copy link
Copy Markdown
Contributor

Task

Closes #1042-child (docs.dig.net) — adds the §2.4a Prettier format gate to the Docusaurus docs site, the last cold service frontend missing it. v0.7.2 → 0.7.3 (patch).

🚧 Draft anchor — implementation in progress.

Scope (mirrors explore/search/bugreport/dig.net, adapted for Docusaurus)

  • prettier ^3 + eslint-config-prettier ^10 devDeps; .prettierrc (canonical house style: printWidth 100, singleQuote false, trailingComma all, semi true, tabWidth 2) + .prettierignore.
  • Content-safe scoping (critical): the .prettierignore EXCLUDES the docs/blog/i18n content trees (1155 md/mdx across 14 locales) and build output (dist/, .docusaurus/). Prettier formats only the code surface (src/**, scripts/**, config *.ts/*.mjs/*.js) — never mass-reformats translated content (§4.3 docs integrity, §6.6 i18n).
  • format/format:check scripts; eslint-config-prettier wired LAST in the eslint flat config.
  • format (prettier) step added to the deploy.yml PR gate job (before lint); lint stays eslint . --max-warnings 0.
  • One-time prettier --write on the code surface, isolated in its own style: commit.
  • Full existing gate stays green (typecheck / lint / multi-locale build / a11y / e2e / unit).

Generated by Claude Code

MichaelTaylor3d and others added 3 commits July 30, 2026 05:27
Anchor commit — implementation in progress. Bumps 0.7.2 -> 0.7.3 (patch).

Co-Authored-By: Claude <noreply@anthropic.com>
Wire prettier + eslint-config-prettier so format:check runs in the PR
gate before lint/build. Scoped to the JS/TS code surface only (src/,
scripts/, tests/, root configs) via .prettierignore — docs content,
i18n translations, and generated artifacts are explicitly excluded so
this never touches the 1155+ md/mdx files across 14 locales.

lint tightened to --max-warnings 0 to match the other gates.

Co-Authored-By: Claude <noreply@anthropic.com>
Isolated formatting-only sweep over src/, scripts/, tests/, and root
config files per the new .prettierrc — no behavior change.

Co-Authored-By: Claude <noreply@anthropic.com>
@MichaelTaylor3d
MichaelTaylor3d marked this pull request as ready for review July 30, 2026 05:52
@MichaelTaylor3d
MichaelTaylor3d merged commit b0ba790 into main Jul 30, 2026
7 checks passed
@MichaelTaylor3d
MichaelTaylor3d deleted the ci/1042-prettier-gate branch July 30, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant