Skip to content

build: add oxfmt formatter and check it in CI - #8

Merged
7a6163 merged 2 commits into
mainfrom
style/oxfmt
Oct 21, 2026
Merged

7a6163 merged 2 commits into
mainfrom
style/oxfmt

Conversation

@7a6163

@7a6163 7a6163 commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Why

There was no formatter. Lines added recently had already started breaking the existing Prettier-style layout: double quotes, trailing commas, 80-column lines.

What changed

  • New oxfmt devDependency and .oxfmtrc.json with printWidth: 80. oxfmt defaults to 100, which would have rewritten about 125 lines.
  • npm run format / npm run format:check, both scoped to src/.
  • CI runs format:check before typecheck.
  • CLAUDE.md documents the command.

There are two commits. The second, style: format src with oxfmt, only reformats code (+54 / −22) and changes no behaviour. It can be skipped in review, or added to .git-blame-ignore-revs later.

Testing

  • npm run format:check passes
  • npm run typecheck passes
  • npm test: 24 passed
  • npm audit: 0 vulnerabilities
  • CI on this PR

🤖 Generated with Claude Code

printWidth 80 matches the existing Prettier-style code; oxfmt's
default of 100 would rewrite far more lines. Scoped to src/.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.37037% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/telegram.ts 0.00% 4 Missing ⚠️
src/apiWrite.ts 0.00% 3 Missing ⚠️
src/index.ts 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/apiRead.ts 81.06% <100.00%> (+0.90%) ⬆️
src/auth.ts 92.42% <100.00%> (+0.11%) ⬆️
src/utils.ts 100.00% <100.00%> (ø)
src/index.ts 62.28% <0.00%> (+1.59%) ⬆️
src/apiWrite.ts 82.29% <0.00%> (+5.06%) ⬆️
src/telegram.ts 78.04% <0.00%> (-6.17%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@7a6163
7a6163 merged commit 675d7c2 into main Oct 21, 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.

2 participants