chore: Biome lint + coverage CI and frontend SEO/GEO#651
Merged
Conversation
CLI guardrails: - Add Biome 1.9.4 with a green-baseline config (recommended rules on, currently-violated stylistic rules disabled) so CI catches new issues without churning 85 existing files. Adds lint/format/format:check scripts. - Add test:coverage script (node --experimental-test-coverage) and wire Lint + coverage steps into the PR CI workflow. - Expand npm keywords for package discoverability. Frontend SEO/GEO: - Enrich root metadata: metadataBase, canonical, OpenGraph, Twitter card, robots directives, viewport, and SoftwareApplication JSON-LD. - Add robots.ts and sitemap.ts metadata routes. - Add public/llms.txt for generative-engine optimization. - Site origin is overridable via NEXT_PUBLIC_SITE_URL. Verified: biome lint clean, frontend tsc --noEmit clean. The 22 failing tests are pre-existing in this sandbox (env-specific) and unrelated. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015Qyz9J4TivR9kJeAeETSUw
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.
What
Implements three of the repo-improvement suggestions: lint guardrails, test coverage in CI, and frontend SEO/GEO.
CLI guardrails
recommendedcorrectness/suspicious rules stay on, while the rules currently violated by the existing 85 files are disabled. This is a ratchet — CI catches new issues without a risky 85-file reformat in a live multi-agent repo. Teams can later runnpm run formatand re-enable rules incrementally.lint,format,format:check,test:coverage.ci.yml) now runs a Lint (Biome) step and switches unit tests totest:coverage(node --experimental-test-coverage). Kept the repo's budget-friendly single-Node PR design intact (no matrix added — that stays in the weeklyci-full.yml).keywordsfor package discoverability.Frontend SEO/GEO (Next.js App Router)
app/layout.tsx: rich metadata —metadataBase, canonical, OpenGraph, Twitter card, robots directives,viewport, andSoftwareApplicationJSON-LD structured data.app/robots.ts+app/sitemap.tsmetadata routes.public/llms.txtfor generative-engine optimization (GEO) — gives AI crawlers a clean project summary.NEXT_PUBLIC_SITE_URL(defaults to the GitHub repo so URLs always resolve).Verification
npm run lint→ clean (171 files checked).npx tsc --noEmit(frontend) → clean.main.🤖 Generated with Claude Code
https://claude.ai/code/session_015Qyz9J4TivR9kJeAeETSUw
Generated by Claude Code