#43
Add Trylle checks and staged linting
Summary
- Add a Trylle checks workflow with independent lint, type-check, and test jobs for pull requests and pushes to
main. - Add Next.js route type generation before TypeScript checking.
- Enable Ultracite/Biome formatting with a Husky + lint-staged pre-commit hook while keeping the existing ESLint rules as the CI lint gate.
- Scope the existing CommonJS import exception to the Babel and PostCSS configuration files so the repository lint job is green.
Validation
pnpm install --frozen-lockfilepnpm lintpnpm typecheckpnpm test(172 passing)DEMO_MODE=true pnpm buildultracite doctor- Husky pre-commit hook with staged files
git diff --check
Activity
11mikeyreviewed2mo ago
e213be8 into main2mo agostylessh deleted
stylessh/add-ci-checks branch2mo ago
Review summary
Reviewed the full diff (
.trylle/workflows/checks.yml,biome.jsonc,.husky/pre-commit,.lintstagedrc.json,eslint.config.mjs,package.json,pnpm-lock.yaml).No blocking correctness or security issues found.
What I verified:
runs-on: ubuntu-latest-armmatches the existing convention already used in.trylle/workflows/railway.ymlandstalwart.yml, so it isn't a stray/unsupported runner label.permissions: contents: readon the newchecks.ymlworkflow is minimal and sufficient — no job needs to write PR comments, packages, or contents.@typescript-eslint/no-require-importsis scoped to exactlybabel.config.jsandpostcss.config.js; agrepforrequire(across the repo's other*.config.*files (next.config.ts,drizzle.config.ts) confirms no other file needed the same exception, so the lint job won't have an unexpected gap or unnecessary blind spot.package.json/pnpm-lock.yamlspecifiers are consistent (@biomejs/biome@2.5.12,husky@9.1.7,lint-staged@17.5.1,ultracite@7.12.0all match betweendependenciesand the lockfile resolution).ultracite@7.12.0'seslint: ^10.0.0peer constraint is unmet by the repo'seslint@^9, buteslintis listed as an optional peer in ultracite'speerDependenciesMeta, and the repo has no.npmrcforcingstrict-peer-dependencies, sopnpm install --frozen-lockfilewon't fail on it — just a silent, non-fatal peer mismatch.Non-blocking follow-up:
lint-staged@17.5.1requiresnode >= 22.22.1(per itsenginesfield in the lockfile), butpackage.jsonsets noenginesconstraint and the new CI workflow pinsnode-version: "22"(unpinned patch). A contributor running an older Node 22.x locally will have the new Husky pre-commit hook fail outright when it shells out tolint-staged, blocking every commit with a version-mismatch error rather than a lint failure. Consider adding anengines.nodefield (or pinningnode-versionto a specific 22.x that satisfies>=22.22.1) so this fails fast and clearly atpnpm installtime instead of at first commit.Everything else — the three independent CI jobs (lint/typecheck/test), the
next typegen && tsc --noEmittypecheck step, and the Husky/lint-staged wiring — looks correctly scoped to the PR's stated goal.