Skip to content

Upgrade Prettier to 3 and check formatting in CI - #68

Merged
ashirman merged 2 commits into
mainfrom
feature/rev-135-prettier
Oct 15, 2026
Merged

ashirman merged 2 commits into
mainfrom
feature/rev-135-prettier

Conversation

@revopushbot

Copy link
Copy Markdown
Contributor

Part of REV-135 (dependency cleanup, step 4). The ESLint upgrade and replacing moment come in separate PRs.

Changes

  • Prettier 2.8.8 → ^3.9.10.
  • trailingComma: "es5" in prettier.config.js: Prettier 3 changed the default to "all", which would have reformatted 17 files. With this setting, v3 formats the code exactly as v2 did.
  • Three files reformatted: binary-utils.ts, command-executor.ts and gradle-utils.ts had drifted from the formatting before this PR. The change is layout only; all 91 template strings in these files are byte-identical.
  • Formatting is now checked in CI: a new npm run format:check script, and a "Check formatting" step in the lint job, so formatting can't drift again.

Verification

  • Build, lint and format check: tsc, npm run lint and npm run format:check are clean.
  • Tests: all 155 pass.

🤖 Generated with Claude Code

- Keep trailingComma "es5" so Prettier 3 formats the code as before
- Format the three files that had drifted
- Add a format:check script and run it in the lint job

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ashirman
ashirman merged commit 5e347c3 into main Oct 15, 2026
2 checks passed
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.

2 participants