Skip to content

fix(site): resolve biome lint/format errors blocking pnpm run check - #179

Open
tnunamak wants to merge 1 commit into
mainfrom
fix/site-lint-docs-source-sitemap
Open

fix(site): resolve biome lint/format errors blocking pnpm run check#179
tnunamak wants to merge 1 commit into
mainfrom
fix/site-lint-docs-source-sitemap

Conversation

@tnunamak

Copy link
Copy Markdown
Contributor

Summary

pnpm run check in apps/site was failing on three unrelated biome findings:

  • src/app/specification/[[...slug]]/page.tsx: isMaintainerDoc's .some() callback used slug as its parameter name, shadowing the outer slug (the route's resolved segment array) declared earlier in the same function. Renamed the callback parameter to maintainerSlug.
  • src/lib/docs-source.ts and src/lib/sitemap-entries.ts: both had an array literal formatted across multiple lines where biome's formatter (120-char line width in this app) wants it collapsed onto one line. Applied the formatter's own suggested output.

No behavior change. Pure lint/format cleanup, one change per PR per this repo's convention.

Test plan

  • pnpm exec biome check on all three touched files: 0 errors
  • pnpm run check (apps/site): exit 0 (4 pre-existing, unrelated suppressions/unused warnings in data-source.ts / route.test.ts remain, confirmed present on main before this change)
  • pnpm test (apps/site): 202/202 pass
  • pnpm run types:check (apps/site): exit 0

Assisted-by: AI

Three unrelated biome findings in apps/site had accumulated and were
failing `pnpm run check`:

- src/app/specification/[[...slug]]/page.tsx: the `isMaintainerDoc`
  check used `slug` as its `.some()` callback parameter, shadowing the
  outer `slug` (the route's resolved segment array) declared a few
  lines above in the same function. Renamed the callback parameter to
  `maintainerSlug`.
- src/lib/docs-source.ts and src/lib/sitemap-entries.ts: both had an
  array literal formatted across multiple lines that biome's
  formatter (120-char line width in this app) wants collapsed onto a
  single line. Ran the formatter's suggested output as-is.

No behavior change; `pnpm run check`, `pnpm test`, and
`pnpm run types:check` all pass in apps/site.

Assisted-by: AI
Signed-off-by: Tim Nunamaker <tnunamak@gmail.com>
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pdpp Ready Ready Preview Aug 21, 2026 9:29pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant