Skip to content

Commit 5ddb7a6

Browse files
committed
chore: update flake, apply biome autofix
1 parent 438c9f8 commit 5ddb7a6

23 files changed

Lines changed: 55 additions & 51 deletions

biome.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.3/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
@@ -9,7 +9,7 @@
99
"ignoreUnknown": true,
1010
"includes": [
1111
"**/*",
12-
"!packages/class_data/data/**",
12+
"!packages/class_data/data",
1313
"!packages/web/src/app.css"
1414
]
1515
},

bun.lock

Lines changed: 16 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"fix": "bunx biome check . --fix"
1616
},
1717
"devDependencies": {
18-
"@biomejs/biome": "^2.1.1",
19-
"concurrently": "^9.2.0"
18+
"@biomejs/biome": "^2.3.3",
19+
"concurrently": "^9.2.1"
2020
},
2121
"dependencies": {
22-
"@elysiajs/eden": "^1.3.2",
23-
"elysia": "^1.3.6"
22+
"@elysiajs/eden": "^1.4.4",
23+
"elysia": "^1.4.15"
2424
}
2525
}

packages/web/src/components/DataLoadingIndicator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useCourseDataStatus } from "@/services/courses/data";
1+
import { useCourseDataStatus } from "@/services/courses/data.ts";
22

33
export default function DataLoadingIndicator({
44
className,

packages/web/src/components/FilterUI/FilterComponents/Evaluation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const EvaluationFilter: React.FC<EvaluationProp> = (
3535
slots.push(<div key={"label_in"}>含む</div>);
3636
slots.push(<div key={"label_ex"}>除外</div>);
3737

38-
evaluations.map((ev) => {
38+
evaluations.forEach((ev) => {
3939
slots.push(<div key={`${ev}header`}>{ev.substring(0, 2)}</div>);
4040
slots.push(
4141
<CheckboxInGrid

packages/web/src/components/Timetable/timetableFrame.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const Timetable: React.FC<TimetableProps> = (props: TimetableProps) => {
141141
);
142142

143143
// 各時限に対し、時限ヘッダーと講義スロット(各曜日分)を作成
144-
period.map((period) => {
144+
period.forEach((period) => {
145145
/* 時限のヘッダー */
146146
slots.push(
147147
<PeriodSlot
@@ -152,7 +152,7 @@ const Timetable: React.FC<TimetableProps> = (props: TimetableProps) => {
152152
);
153153

154154
// 各曜日でループ
155-
day.map((d) => {
155+
day.forEach((d) => {
156156
const dayPeriod: DayPeriod = { day: d, period: period };
157157

158158
// このスロットに表示する講義情報

packages/web/src/components/auth/GoogleLoginButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { signInWithGoogle } from "@/lib/auth-client";
1+
import { signInWithGoogle } from "@/lib/auth-client.ts";
22

33
// TODO: style it properly
44
export function GoogleLoginButton({ callbackURL }: { callbackURL: string }) {

packages/web/src/components/auth/LogOutButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { logout } from "@/lib/auth-client";
1+
import { logout } from "@/lib/auth-client.ts";
22

33
export const LogOutButton = () => {
44
return (

packages/web/src/pages/Profile.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { GoogleLoginButton } from "@/components/auth/GoogleLoginButton";
2-
import { LogOutButton } from "@/components/auth/LogOutButton";
3-
import { useCurrentUserQuery } from "@/services/user/user";
1+
import { GoogleLoginButton } from "@/components/auth/GoogleLoginButton.tsx";
2+
import { LogOutButton } from "@/components/auth/LogOutButton.tsx";
3+
import { useCurrentUserQuery } from "@/services/user/user.ts";
44

55
export default function Profile() {
66
const user = useCurrentUserQuery();

packages/web/src/pages/SignIn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GoogleLoginButton } from "@/components/auth/GoogleLoginButton";
1+
import { GoogleLoginButton } from "@/components/auth/GoogleLoginButton.tsx";
22

33
// TODO: style it
44
// TODO: if user is already logged in, go to /profile

0 commit comments

Comments
 (0)