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:
parent
88c7bf8317
commit
166790245f
152 changed files with 1389 additions and 967 deletions
|
|
@ -25,8 +25,10 @@ export function formatDate(value) {
|
|||
return new Intl.DateTimeFormat("fr-FR", { dateStyle: "medium", timeStyle: "short" }).format(new Date(value));
|
||||
}
|
||||
|
||||
// Couverture d'une toolbox : celle du jeu lié, sinon l'image choisie, sinon son icône. `rect` distingue une image (bandeau)
|
||||
// d'une icône (à centrer sur le dégradé).
|
||||
/**
|
||||
* Couverture d'une toolbox : celle du jeu lié, sinon l'image choisie, sinon son icône. `rect` distingue une image (bandeau)
|
||||
* d'une icône (à centrer sur le dégradé).
|
||||
*/
|
||||
export function getToolboxCover(toolbox, game) {
|
||||
const gameCoverImage = getGameCardCover(game);
|
||||
const customCoverImage = !gameCoverImage && toolbox.customCover ? toolbox.customCover : "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue