Turn the comments that describe functions into JSDoc so the editor shows them on hover

The 669 // comments sitting right above a function, method or hook become
/** */ blocks, unchanged in wording; eslint directives stay right above the
line they target. website/AGENTS.md now asks for JSDoc on function comments
and // inside function bodies. ExpeditionPlanner.jsx grew past 300 lines and
gets its full header, as the header test requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-01 11:51:47 +01:00
parent 88c7bf8317
commit 166790245f
152 changed files with 1389 additions and 967 deletions

View file

@ -49,7 +49,7 @@ export function CollectionPanel({ catalog, state, runMutation, busy, headingCont
&& (!ownership.length || ownership.includes("owned") && quantity > 0 || ownership.includes("missing") && quantity === 0 || ownership.includes("duplicates") && quantity > 1);
});
// Éditions hors promotion d'une collection, décomptées dans les titres de l'album.
/** Éditions hors promotion d'une collection, décomptées dans les titres de l'album. */
function collectionEditionsOf(collection) {
return catalog.editions.filter((edition) => !edition.promotional && cards.get(edition.cardId)?.collectionId === collection.id);
}