Skip to content

Commit 4851e64

Browse files
justin808claude
andcommitted
fix(tooling): prefix unused regex-callback arg to satisfy no-unused-vars
The `![alt](*.svg)` replace callback in rewriteDiagramEmbeds binds the full-match argument as `whole` but only uses `alt`, tripping ESLint `no-unused-vars` (the shakacode config allows unused args only when `_`-prefixed). Rename to `_whole`. Pure no-op for generator output — llms-full*.txt are byte-identical after regeneration. Flagged by CodeRabbit review. The repo lint job is path-gated and was skipped for this docs/tooling PR, so the violation would otherwise surface on a full-CI or main run. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8ac7bae commit 4851e64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

script/generate-llms-full.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function rewriteDiagramEmbeds(text) {
286286
return rewritten === img ? whole : rewritten;
287287
})
288288
.replace(/<img\b[^>]*>/gi, (img) => rewriteImgTag(img))
289-
.replace(/!\[([^\]]*)\]\([^)\s]*\.svg\)/gi, (whole, alt) => diagramMarker(alt));
289+
.replace(/!\[([^\]]*)\]\([^)\s]*\.svg\)/gi, (_whole, alt) => diagramMarker(alt));
290290
}
291291

292292
// Apply rewriteDiagramEmbeds to a doc body while leaving fenced code blocks

0 commit comments

Comments
 (0)