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>
7 lines
430 B
JavaScript
7 lines
430 B
JavaScript
/**
|
||
* @file Formate les quantités de poussière d'étoiles affichées dans le jeu et l'administration.
|
||
*/
|
||
|
||
export const formatStardust = (value) => `${value.toLocaleString("fr-FR")} poussière${value > 1 ? "s" : ""}`;
|
||
/** Nom complet, quand la monnaie n'est pas déjà nommée à côté (icône ou « d'étoiles » ajouté par le texte). */
|
||
export const formatStardustFull = (value) => `${formatStardust(value)} d’étoiles`;
|