Skip to content

style: reformat for prettier 3.9 - #41

Merged
sgort merged 1 commit into
accfrom
style/prettier-3.9-reformat
Aug 29, 2026
Merged

style: reformat for prettier 3.9#41
sgort merged 1 commit into
accfrom
style/prettier-3.9-reformat

Conversation

@sgort

@sgort sgort commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Follow-up to #38.

That PR raised prettier 3.7.43.9.6 as one of twenty-three backend
dependency updates. 3.9 formats short union types on a single line rather than
the leading-pipe multiline style 3.7 produced, so five existing files began
failing prettier --check the moment #38 landed:

packages/backend/src/routes/registry.ts
packages/backend/src/services/sparql.service.ts
packages/frontend/src/components/ChainBuilder/ChainConfig.tsx
packages/frontend/src/components/DocumentComposer/DocumentList.tsx
packages/frontend/src/types/ropa.types.ts

Why CI didn't catch it

No workflow runs check-format. The deploy workflows run npm run lint and
npm test; the audit gate runs zizmor and the Renovate config validator. The
check that catches this is the pre-push hook — so the symptom would have
been the next person's git push failing on files they never touched.

Worth noting as a gap in its own right: check-format is enforced locally but
not in CI, which is the wrong way round for a rule meant to hold on the shared
branch.

This change

Purely cosmetic — 5 files, +5/−22, produced by npm run format and reviewed
as a diff rather than taken on trust.

npm run check-format exit 0
npm run lint pass
backend (Jest) 1130/1130
frontend (Vitest) 573/573
npm run build pass (verified on #38's branch)

Kept as its own commit rather than folded into the v2026.08.4 release that
follows, so the reformat stays attributable to the upgrade that caused it
instead of being buried among twenty-five unrelated commits.

PR #38 raised prettier from 3.7.4 to 3.9.6 as one of twenty-three backend
dependency updates. 3.9 formats short union types on a single line rather than
the leading-pipe multiline style 3.7 produced, which left five existing files
failing `prettier --check` the moment #38 landed.

No workflow runs check-format -- the deploy workflows run lint and tests only --
so nothing in CI reported it. The gate that catches this is the pre-push hook,
which means the first person to push anything to acc would have hit a format
failure in files they had not touched.

Purely cosmetic: five files, +5/-22, produced by `npm run format` and reviewed
as a diff. Lint passes, backend 1130/1130, frontend 573/573, check-format back
to exit 0.

Kept as its own commit rather than folded into the release that follows, so the
reformat stays attributable to the prettier upgrade that caused it instead of
being buried among twenty-five unrelated commits.
@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://brave-bay-04f351e03-41.westeurope.4.azurestaticapps.net

@sgort
sgort merged commit 8060409 into acc Aug 29, 2026
3 checks passed
@sgort
sgort deleted the style/prettier-3.9-reformat branch August 29, 2026 11:27
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