sokko-g/website/src/features/cards/stardustFormat.js
Shinuwa 166790245f 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>
2026-12-01 11:51:47 +01:00

7 lines
430 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @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`;