Skip to content

Commit d61f7cc

Browse files
authored
biome: useImportExtension = error (#62)
1 parent 13822a5 commit d61f7cc

File tree

24 files changed

+52
-45
lines changed

24 files changed

+52
-45
lines changed

biome.jsonc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@
2222
"enabled": true,
2323
"rules": {
2424
"recommended": true,
25+
"correctness": {
26+
"useImportExtensions": {
27+
"level": "error",
28+
"fix": "safe",
29+
"options": {}
30+
}
31+
},
2532
"suspicious": {
26-
"noArrayIndexKey": "off" // we are smarter than you
33+
"noArrayIndexKey": "off"
2734
}
2835
}
2936
},

packages/class_data/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from "node:fs";
22
import { argv } from "node:process";
3-
import { NewClassData } from "./newClass";
4-
import type { PreviousClassData } from "./previousClassDaya";
3+
import { NewClassData } from "./newClass.ts";
4+
import type { PreviousClassData } from "./previousClassDaya.ts";
55

66
/**
77
* 変換処理本体

packages/class_data/newClass.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { PreviousClassData } from "./previousClassDaya";
2-
import { type DayPeriod, dayMappingToEn } from "./type";
1+
import { PreviousClassData } from "./previousClassDaya.ts";
2+
import { type DayPeriod, dayMappingToEn } from "./type.ts";
33

44
/**
55
* 新シ楽バス仕様の講義情報クラス

packages/web/src/App.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { ThemeContext } from "@/app/context";
55
import type { RegisterType, ThemeType } from "@/app/type";
66
import { UserContext, type UserContextValue } from "@/app/UserContext";
77
import { User } from "@/app/utils/user";
8-
import Footer from "./app/components/Footer";
9-
import Header from "./app/components/Header";
10-
import AboutUs from "./pages/AboutUs";
11-
import Disclaimer from "./pages/Disclaimer";
12-
import Home from "./pages/Home";
13-
import HowToUse from "./pages/HowToUse";
14-
import NotFound from "./pages/NotFound";
15-
import Notion from "./pages/Notion";
8+
import Footer from "./app/components/Footer/index.tsx";
9+
import Header from "./app/components/Header/index.tsx";
10+
import AboutUs from "./pages/AboutUs.tsx";
11+
import Disclaimer from "./pages/Disclaimer.tsx";
12+
import Home from "./pages/Home.tsx";
13+
import HowToUse from "./pages/HowToUse.tsx";
14+
import NotFound from "./pages/NotFound.tsx";
15+
import Notion from "./pages/Notion.tsx";
1616

1717
/**
1818
* App コンポーネントは、アプリケーション全体のレイアウトを定義します。

packages/web/src/app/components/ClassModal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Dialog, DialogPanel, DialogTitle } from "@headlessui/react";
22
import { FiX } from "react-icons/fi";
33
import { type ClassDataType, type DayPeriod, dayMapping } from "@/app/type";
4-
import Item from "./ClassModalItem";
4+
import Item from "./ClassModalItem.tsx";
55

66
/**
77
* モーダルに渡すprops

packages/web/src/app/components/FilterUI/FilterComponents/ClassType.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
import type React from "react";
55
import type { ClassType } from "@/app/type";
6-
import { FlagButton } from "../UI/FlagButton";
6+
import { FlagButton } from "../UI/FlagButton.tsx";
77

88
/**
99
* クラス種別フィルターのプロパティ

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import type React from "react";
66
import type { ReactNode } from "react";
77
import type { Evaluation } from "@/app/type";
8-
import Checkbox from "../UI/Checkbox";
8+
import Checkbox from "../UI/Checkbox.tsx";
99

1010
const evaluations: Evaluation[] = ["試験", "レポート", "出席", "平常"];
1111

packages/web/src/app/components/FilterUI/FilterComponents/Freeword.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import type React from "react";
6-
import Checkbox from "../UI/Checkbox";
6+
import Checkbox from "../UI/Checkbox.tsx";
77

88
/**
99
* フリーワード検索のプロパティ

packages/web/src/app/components/FilterUI/FilterComponents/RegistrationFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import type React from "react";
6-
import { FlagButton } from "../UI/FlagButton";
6+
import { FlagButton } from "../UI/FlagButton.tsx";
77

88
/**
99
* 履修登録済みか否かのフィルターのプロパティ

packages/web/src/app/components/FilterUI/FilterComponents/Semester.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import type React from "react";
66
import type { Semester } from "@/app/type";
7-
import { FlagButton } from "../UI/FlagButton";
7+
import { FlagButton } from "../UI/FlagButton.tsx";
88

99
/**
1010
* セメスターフィルターのプロパティ

0 commit comments

Comments
 (0)