aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Media/Anime/season.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-03-01 16:20:51 -0800
committerFuwn <[email protected]>2026-03-01 16:21:02 -0800
commiteae5d24d9e79e59a19d4721caaeaa0ca650ecb33 (patch)
tree1b685bb248e051dfa26d2bfdebe6689402dd93c5 /src/lib/Media/Anime/season.ts
parentchore(tooling): remove legacy eslint and prettier (diff)
downloaddue.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.ts18
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";
};