Skip to content

ci: check formatting instead of rewriting files - #638

Open
leonschh wants to merge 1 commit into
inkonchain:mainfrom
leonschh:patch-1
Open

ci: check formatting instead of rewriting files#638
leonschh wants to merge 1 commit into
inkonchain:mainfrom
leonschh:patch-1

Conversation

@leonschh

Copy link
Copy Markdown

Update the formatting CI job to validate formatting instead of rewriting files.

  • Replace pnpm run format:js with pnpm run format:js:chec.
  • format:js uses Prettier --write, which modifies files instead of validating them.
  • format:js:check uses Prettier --check and fails when formatting differs.
  • format:js:check is already defined in package.json and is used by the main lint script.

This ensures the CI formatting job acts as a validation gate instead of silently rewriting files inside the runner.

Update the formatting CI job to validate formatting instead of rewriting files.

Replace pnpm run format:js with pnpm run format:js:check.
format:js uses Prettier --write, which modifies files instead of validating them.
format:js:check uses Prettier --check and fails when formatting differs.
format:js:check is already defined in package.json and is used by the main lint script.

This ensures the CI formatting job acts as a validation gate instead of silently rewriting files inside the runner.
@leonschh
leonschh requested a review from a team as a code owner August 11, 2026 08:16
@leonschh

Copy link
Copy Markdown
Author

I wrote about this line: package.json

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