Repository navigation
build(lint): add Biome and a Lefthook pre-push hook for the hub - #85
Merged
Merged
Conversation
This was referenced Nov 21, 2026
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.
Linked issue
None: tooling parity with egdev6/quorb#307 (Biome + Lefthook), requested by the maintainer.
Type of change
type:bugtype:featuretype:docstype:refactortype:breaking-changetype:choretype:testSummary
The hub frontend (
apps/hub) gets linted and formatted by Biome. A Lefthookpre-pushhook runs the same checks locally, and CI runsnpx biome ci, so any lint error or unformatted file fails the build. The setup and policy match Quorb.Changes
6f81354)apps/hub/biome.jsonuses Quorb's config: recommended rules, single quotes, line width 160, CSS formatter off, andvcs.root: "../.."because the hub is nested. The rootlefthook.ymlpre-push hook runsnpx biome ciinapps/hubandcargo fmt --all -- --check. New scripts:lint,format,check,check:fixandhooks:install. Adds a CI step inci.yml, a step inscripts/check.sh, LF rules in.gitattributes, CONTRIBUTING (EN/ES) and the README script rows.6b6ad4e)biome format --writeon its parent.be62ac8).git-blame-ignore-revswith the format commit.4bc6f35,dff61c4)biome-ignore, and the control-character regexes in the validators are untouched.Test evidence
npx biome ci: 0 errors (226 warnings, which do not fail the check).npm test(594),npx tsc --noEmit,npm run ds:doctor,npm run buildandcargo fmt --all -- --check: all pass.lefthook run pre-push --force): exit 0 on a clean tree; exit 1 on biome after adding adebugger;.@biomejs/*andlefthook*, and that the lint fixes do not change behavior.Risks and follow-ups
.git-blame-ignore-revsto the format commit's SHA onmain.mainand runnpm run check:fixto resolve formatting conflicts.npm run hooks:installonce per clone fromapps/hub. There is no npmpreparescript on purpose.Review notes
6f81354and the two lint commits; skip6b6ad4e(formatting only).biome-ignorenames its rule and a concrete reason.AI assistance
The el Gentleman harness on Pi drafted this change: tooling, formatting, lint fixes (via a worker) and an independent verifier pass. The maintainer reviews it and carries responsibility for the final decision.