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
|
|
@ -8,7 +8,7 @@ import { toDateTimeLocal } from "./adminFormat.js";
|
|||
|
||||
const monthStartOf = (dateKey) => new Date(`${dateKey.slice(0, 7)}-01T00:00`);
|
||||
|
||||
// `value` et `onChange` utilisent le format local « AAAA-MM-JJTHH:mm ».
|
||||
/** `value` et `onChange` utilisent le format local « AAAA-MM-JJTHH:mm ». */
|
||||
export function ExpiryField({ label, value, now, onChange }) {
|
||||
const [date, time] = value.split("T");
|
||||
const [displayedMonth, setDisplayedMonth] = useState(() => monthStartOf(date));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue