Skip to content

fix: resolve Biome lint errors in web-client and docs SVG - #382

Open
maximusrufus wants to merge 6 commits into
google-agentic-commerce:mainfrom
maximusrufus:fix/biome-lint
Open

maximusrufus wants to merge 6 commits into
google-agentic-commerce:mainfrom
maximusrufus:fix/biome-lint

Conversation

@maximusrufus

@maximusrufus maximusrufus commented Oct 16, 2026 •

Copy link
Copy Markdown

Super-linter fails on PRs that touch nothing in code/web-client or docs/assets (e.g. #352, run 34409230810). This PR makes Lint Code Base, spellcheck and the zizmor Actions scan pass.

Web client (code/web-client/src) — Biome errors fixed: explicit type="button", decorative SVGs aria-hidden, typed import.meta.env, guarded #root, fetchMandate added to sendToAgent deps (stable callback), intentional dep lists annotated with biome-ignore, dead code removed. No behavior change intended; biome lint, eslint, tsc --noEmit, vite build pass locally.

Super-linter config (.github/workflows/linter.yaml)

  • Exclude code/web-client/ like code/samples/: super-linter's generic ESLint/Prettier has no React config and cannot resolve the app's imports, so any PR touching it failed TSX/TYPESCRIPT_ES/TYPESCRIPT_PRETTIER. The app keeps its own eslint.config.js. Pattern is unanchored because those linters see absolute /github/workspace/... paths.
  • Required by the zizmor scan once the file is touched: actions pinned to SHAs (checkout v5.1.0, super-linter v8.7.0 — same versions as before), explicit least-privilege permissions, persist-credentials: false.

Docs SVGs (docs/assets/*.svg) — removed XML prolog/DOCTYPE/comments Biome cannot parse, added <title>, sans-serif font fallback. Still valid XML.

Spellcheck — added sublabel/Sublabel/dedup; **/*.svg ignored (generated IDs).

🤖 Generated with Claude Code

@google-cla

google-cla Bot commented Oct 16, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

- Add explicit type="button" to buttons; mark decorative SVGs aria-hidden
- Replace `any` and non-null assertions with typed/guarded code
- Add fetchMandate to sendToAgent deps (stable callback); document
  intentional dependency lists with biome-ignore comments
- Drop dead code and unused imports in mandateEntries
- Strip XML prolog/DOCTYPE from mandate_delegation_user_credential.svg,
  add a <title>, and a generic font fallback

Verified locally: biome lint, eslint, tsc --noEmit and vite build pass.
code/web-client has its own eslint config; super-linter's generic
ESLint/Prettier lacks React settings and cannot resolve its imports.
Strip XML prolog/DOCTYPE/comments from docs SVGs, add titles and a
generic font fallback so Biome can parse and lint them.

This branch has not been deployed

No deployments
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