style: format code for consistency across multiple files
Some checks failed
/ print-content (push) Failing after 26s

This commit is contained in:
암냥 2026-09-07 08:07:33 +09:00
commit e33f173101
11 changed files with 364 additions and 363 deletions

View file

@ -7,21 +7,21 @@ const sortedEvents = [...events].sort((a, b) => b.date.localeCompare(a.date));
const years = [...new Set(sortedEvents.map((event) => event.date.slice(0, 4)))];
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
const eventsByYear = years.map((year) => ({
year,
events: sortedEvents.filter((event) => event.date.startsWith(year)),
year,
events: sortedEvents.filter((event) => event.date.startsWith(year)),
}));
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
const getShortDate = (date: string) => {
const [, month, day] = date.split("-");
return `${month}.${day}`;
const [, month, day] = date.split("-");
return `${month}.${day}`;
};
const currentYear = new Date().getFullYear();
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
const daysUntilYearEnd = Math.ceil(
(new Date(currentYear + 1, 0, 1).getTime() - Date.now()) /
(1000 * 60 * 60 * 24),
(new Date(currentYear + 1, 0, 1).getTime() - Date.now()) /
(1000 * 60 * 60 * 24),
);
---