Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

Commit

Prettier, for the files a change adds

The code is formatted by hand at many widths, so no one setting matches most of it: about 60% of the web app's files differ under any print width. A print width of 160 matches the most. New files are formatted with it; older ones are left as they are until a change of their own formats them, so no feature's diff is buried under reformatting.

G1t-Session:
ses_01m57128wre9bvvj1y4z4b8dk0
syntaqxcommitted Parent3cf80eeBrowse files
5 files+18−00/5 viewed
+9−0
1+# Generated, vendored or built: never formatted.
2+node_modules/
3+target/
4+dist/
5+build/
6+.wrangler/
7+.react-router/
8+*.lock
9+package-lock.json
+3−0
1+{
2+ "printWidth": 160
3+}
+3−0
7676 - `cargo test` in the crate or service you changed.
7777 - `npx tsc -b --force` in `apps/web` (the incremental build misses changes
7878 in `packages/contracts`).
79+- `npm run format -- <files>` on the TypeScript files you added
80+ (`.prettierrc.json`). Older files are not formatted yet, so format a file
81+ you only edited in a change of its own, not in the middle of a feature.
7982 - Look at what you changed in a browser. Screenshots catch what type
8083 checks do not.
8184
+0−0

Binary or large file; its contents are not shown.

+3−0
1111 "packages/*"
1212 ],
1313 "scripts": {
14+ "format": "prettier --write",
15+ "format:check": "prettier --check",
1416 "typecheck": "npm run typecheck --workspaces --if-present",
1517 "deploy": "npm run deploy -w @g1t/web",
1618 "test:deploy": "node --test \"scripts/deploy/*.test.mjs\"",
2022 "test:release": "node --test \"scripts/cli-homebrew.test.mjs\" \"scripts/desktop-release.test.mjs\" \"scripts/mobile-release.test.mjs\" \"scripts/cli-release.test.mjs\" \"scripts/plugins-release.test.mjs\""
2123 },
2224 "devDependencies": {
25+ "prettier": "3.6.2",
2326 "typescript": "^5.9.3",
2427 "wrangler": "^4.146.0"
2528 },

Comments

Sign in to comment.