Skip to content

Self-host Prettier via root package.json; drop creyD/prettier_action#122

Merged
SyniRon merged 1 commit into
mainfrom
chore/prettier-self-hosted
May 22, 2026
Merged

Self-host Prettier via root package.json; drop creyD/prettier_action#122
SyniRon merged 1 commit into
mainfrom
chore/prettier-self-hosted

Conversation

@SyniRon
Copy link
Copy Markdown
Collaborator

@SyniRon SyniRon commented May 22, 2026

Why

creyD/prettier_action@v4.6 silently broke the prettier_version input — instead of installing the pinned version, it falls back to whatever current is on npm (3.8.3 today). That's how the lint job blew up when Dependabot bumped the action (we reverted back to v4.3 to fix it). We're one shaky third-party update away from this recurring.

This PR removes that fragility by pinning Prettier in our own lockfile and dropping the third-party action.

What changed

  • New root package.json with prettier as a single devDep + format / format:check scripts
  • New .prettierignore covering build outputs and lockfiles
  • Workflow swaps creyD/prettier_action@v4.3npm ci && npm run format:check (with actions/setup-node@v6 + npm cache)
  • One-time Prettier 3 reformat across 11 files — entirely the v3 trailingComma: "all" default change + long font-family list wrapping in globals.css. Verified by spot-checking diffs: no semantic changes.

Both devs

Local usage is now:

npm install     # once
npm run format  # write
npm run format:check  # match CI

Same Prettier version everywhere, locked in package-lock.json. Dependabot will propose future Prettier bumps as normal PRs with a visible reformat diff.

Implicit resolution

Resolves the creyD/prettier_action 4.3 → 4.6 half of #117 — the action is no longer referenced.

Test plan

  • npm run format:check clean locally
  • client/npm run build compiles successfully (pre-existing /adr + /rosterstatistics prerender errors are unchanged from main)
  • CI lint_format_check green

🤖 Generated with Claude Code

Replaces the third-party Prettier action with a locally-pinned
prettier devDep in a new root package.json. Now:

- prettier version is locked in package-lock.json (no surprise
  reformats when the action's version-pinning bug bites again)
- both devs can run `npm run format` / `npm run format:check`
  locally with the same version CI uses
- workflow is a straight `npm ci && npm run format:check`

Includes the one-time Prettier 3 reformat (trailing-commas-all is
the v3 default; touches 11 files, formatting only — verified by
diff that no semantics changed). Client builds; pre-existing
/adr + /rosterstatistics prerender errors unchanged.

This implicitly resolves the creyD/prettier_action portion of #117
since the action is no longer referenced.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@SyniRon SyniRon merged commit ba884a2 into main May 22, 2026
1 check 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.

1 participant