Repository navigation
chore(tooling): adopt Prettier + add CI (format check & typecheck) - #80
Merged
Merged
Conversation
- Prettier config (single quotes, printWidth 100) + ignore for generated files - eslint-config-prettier so ESLint owns code quality and Prettier owns layout - format / format:check scripts - GitHub Actions CI running format:check + typecheck on PRs The bulk reformat lands in the next commit so this stays reviewable.
Mechanical, formatting-only changes — no logic changes. Recorded in .git-blame-ignore-revs so git blame skips this commit.
Merged
This branch was successfully deployed
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.
Summary
Adopts Prettier as the project's formatter and adds CI so formatting is enforced automatically. This kills the recurring "noisy diff" problem where a contributor's editor reformats whole files (the exact issue seen in #73): once everyone shares one Prettier config, diffs contain only real changes.
What's included
web/.prettierrc.json) — single quotes,printWidth: 100, trailing commas — chosen to match the existing style and minimize churn..prettierignoreskips generated files (e.g.src/types/supabase.ts).eslint-config-prettieradded last in the flat config so ESLint owns code quality and Prettier owns layout (no conflicts).yarn format(write) andyarn format:check..github/workflows/ci.yml) — runsformat:check+typecheckon every PR/push tomain.yarn format+ that CI checks it.Commit structure (review-friendly)
chore(tooling)— config, ESLint integration, scripts, deps, CI (small, reviewable)style— the one-timeprettier --writeoverweb/src(138 files, mechanical, zero logic changes)chore—.git-blame-ignore-revssogit blameskips the reformat commitdocs(contributing)— the formatting noteNotes
format:checkandtypecheckboth pass locally ✅lintis intentionally not in CI yet —maincurrently has pre-existing ESLint errors (unrelated to this PR) that would make the gate red. Worth a separate cleanup PR, after whichlintcan be added to CI.node_modules, and a broken hook can block local commits. CI already enforces formatting; the hook can be a focused follow-up.How to use