Skip to content

Upgrade prettier to 3.9.5 and reformat - #5930

Merged
jonnalley merged 1 commit into
mainfrom
chore/prettier-3.9.5-format
Jul 14, 2026
Merged

Upgrade prettier to 3.9.5 and reformat#5930
jonnalley merged 1 commit into
mainfrom
chore/prettier-3.9.5-format

Conversation

@jonnalley

@jonnalley jonnalley commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

What changed

Upgrades prettier 3.8.53.9.5 in the frontend and applies the single reformat the new version produces, so the Linting CI job passes on that upgrade.

  • frontend/package.json — bump prettier devDependency to 3.9.5.
  • frontend/bun.lock — regenerated lockfile entry for prettier@3.9.5 (new sha512).
  • frontend/src/types/ProcurementTrackerTypes.d.ts — prettier 3.9.5 reformats the ProcurementTrackerStepType union onto a single line (whitespace-only; no type or runtime change).

Why a new branch instead of fixing the Renovate PR

Renovate PR #5873 (chore(deps): update minor dependencies, branch renovate/all-minor) batches this same prettier bump, and its Linting job fails on exactly this file:

[warn] src/types/ProcurementTrackerTypes.d.ts
[warn] Code style issues found in the above file. Run Prettier with --write to fix.
error: "prettier" exited with code 1

Renovate treats its branches as managed and will overwrite/abandon them if others push commits, so we deliberately do not push the format fix onto renovate/all-minor. Instead this self-contained branch carries the prettier bump + lockfile + reformat on its own and can merge into main independently. Once merged, Renovate will drop prettier from its next batch.

Issue

N/A — maintenance follow-up to Renovate PR #5873. No dedicated ticket.

How to test

cd frontend
bun install
# Mirrors the failing CI step — should exit 0:
bun run prettier --check --ignore-unknown 'src/**/*' '!src/uswds/**'
# Should be clean:
bun run lint

Both were verified locally: prettier --check prints "All matched files use Prettier code style!" and eslint exits 0.

A11y impact

  • No accessibility-impacting changes in this PR

Storybook

  • N/A — change is page-specific or non-visual

Screenshots

N/A — dependency + formatting change only.

Definition of Done Checklist

  • OESA: Code refactored for clarity
  • OESA: Dependency rules followed
  • Automated unit tests updated and passed
  • Automated integration tests updated and passed
  • Automated quality tests updated and passed
  • Automated load tests updated and passed
  • Automated a11y tests updated and passed
  • Automated security tests updated and passed
  • 90%+ Code coverage achieved
  • Form validations updated

Links

@jonnalley jonnalley changed the title chore(deps): upgrade prettier to 3.9.5 and reformat Upgrade prettier to 3.9.5 and reformat Jul 14, 2026
@jonnalley jonnalley self-assigned this Jul 14, 2026
@jonnalley
jonnalley merged commit be3e24e into main Jul 14, 2026
70 checks passed
@jonnalley
jonnalley deleted the chore/prettier-3.9.5-format branch July 14, 2026 14:45
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.428.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants