diff options
| author | Fuwn <[email protected]> | 2026-03-01 16:20:51 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-01 16:21:02 -0800 |
| commit | eae5d24d9e79e59a19d4721caaeaa0ca650ecb33 (patch) | |
| tree | 1b685bb248e051dfa26d2bfdebe6689402dd93c5 /src/lib/Media/Anime/season.ts | |
| parent | chore(tooling): remove legacy eslint and prettier (diff) | |
| download | due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.tar.xz due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.zip | |
chore(biome): drop formatter style overrides
Diffstat (limited to 'src/lib/Media/Anime/season.ts')
| -rw-r--r-- | src/lib/Media/Anime/season.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/Media/Anime/season.ts b/src/lib/Media/Anime/season.ts index d0cd6c25..cfd96856 100644 --- a/src/lib/Media/Anime/season.ts +++ b/src/lib/Media/Anime/season.ts @@ -1,11 +1,11 @@ export const season = () => { - if (new Date().getMonth() >= 0 && new Date().getMonth() <= 2) - return 'WINTER' as 'WINTER' | 'SPRING' | 'SUMMER' | 'FALL'; - else if (new Date().getMonth() >= 3 && new Date().getMonth() <= 5) - return 'SPRING' as 'WINTER' | 'SPRING' | 'SUMMER' | 'FALL'; - else if (new Date().getMonth() >= 6 && new Date().getMonth() <= 8) - return 'SUMMER' as 'WINTER' | 'SPRING' | 'SUMMER' | 'FALL'; - else if (new Date().getMonth() >= 9 && new Date().getMonth() <= 11) - return 'FALL' as 'WINTER' | 'SPRING' | 'SUMMER' | 'FALL'; - else return 'WINTER' as 'WINTER' | 'SPRING' | 'SUMMER' | 'FALL'; + if (new Date().getMonth() >= 0 && new Date().getMonth() <= 2) + return "WINTER" as "WINTER" | "SPRING" | "SUMMER" | "FALL"; + else if (new Date().getMonth() >= 3 && new Date().getMonth() <= 5) + return "SPRING" as "WINTER" | "SPRING" | "SUMMER" | "FALL"; + else if (new Date().getMonth() >= 6 && new Date().getMonth() <= 8) + return "SUMMER" as "WINTER" | "SPRING" | "SUMMER" | "FALL"; + else if (new Date().getMonth() >= 9 && new Date().getMonth() <= 11) + return "FALL" as "WINTER" | "SPRING" | "SUMMER" | "FALL"; + else return "WINTER" as "WINTER" | "SPRING" | "SUMMER" | "FALL"; }; |