Repository navigation
Check formatting and lint with bun fmt and bun lint (canary) - #28
Merged
Merged
Conversation
One-time pass with bun fmt, configured in bunfig.toml to match the existing style (no semicolons, single quotes, printWidth 120). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Adds a job that runs bun fmt --check and bun lint --max-warnings 0 on bun canary (neither is in a stable release yet), turns on eqeqeq (smart), and clears the warnings the linter found. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before: nothing checked formatting or lint.
After: a
format-and-lintjob in the existingtestworkflow runsbun fmt --check .andbun lint --max-warnings 0on bun canary, and the code is formatted to match.bun fmtandbun lintonly ship in canary builds so far, so the job installs canary. Same setup as outlook-mcp, memory-browser and drawlab.How:
style: format with bun fmtis a formatting-only commit.bunfig.tomlsets the formatter to the style the code already had (no semicolons, single quotes, printWidth 120), which keeps the diff small, and turns oneqeqeq(smart).packs/andtools/packs/come from the Python pack builder, which has its own ruff checks, so.prettierignoreleaves them alone.'C:\work\notes.md'held a newline (\n) and a barew; it is now escaped as'C:\\work\\notes.md'and the test still passes.Verified locally with bun 1.4.4-canary.1 and Claude Code 2.1.307: fmt check clean, lint 0 problems,
claude plugin validatepasses.claude plugin test .: 103 pass.The plugin directory's own validator (which once refused
.gitattributes) can't be run from here, so it hasn't checked the newbunfig.tomland.prettierignoreat the repo root.Generated by Claude Code