Skip to content

ci: add prettier format check - #62

Merged
jstirnaman merged 1 commit into
mainfrom
chore/ci-prettier-check
Jun 8, 2026
Merged

ci: add prettier format check#62
jstirnaman merged 1 commit into
mainfrom
chore/ci-prettier-check

Conversation

@jstirnaman

Copy link
Copy Markdown
Collaborator

What this does

Adds a CI gate so prettier formatting drift is caught on every PR. #59 added the repo-local .prettierrc.json and normalized the tree; this PR enforces it going forward.

  • New format-check job in ci.yml runs npm run format:check (prettier --check .). It reuses the same SHA-pinned actions/checkout and actions/setup-node as the other jobs.
  • New format:check npm script.
  • New .prettierignore for build/, node_modules/, and the generated package-lock.json.

Why

The repo had no local prettier config, so prettier --write . inherited an ancestor config and could reformat the whole tree. #59 pinned a local config; without a CI check, nothing prevents future drift.

Verification

npm run format:check passes locally: All matched files use Prettier code style!

Add a Format check CI job and a format:check script (prettier --check .)
so formatting drift is caught on every PR. The repo already conforms to
the local .prettierrc.json added in #59.

Add .prettierignore for build output, node_modules, and the generated
package-lock.json.
@jstirnaman
jstirnaman temporarily deployed to cloud-serverless June 8, 2026 16:25 — with GitHub Actions Inactive
@jstirnaman
jstirnaman merged commit 8fdbc43 into main Jun 8, 2026
5 checks passed
@jstirnaman
jstirnaman deleted the chore/ci-prettier-check branch June 8, 2026 16:36
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