Skip to content

Commit f0e6b02

Browse files
committed
refactor: Biomeの指摘を修正
1 parent 37d3fd4 commit f0e6b02

22 files changed

+195
-175
lines changed

website/src/components/icons/AlertTriangleIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const AlertTriangleIcon = () => {
1010
stroke-linejoin="round"
1111
class="icon icon-tabler icons-tabler-outline icon-tabler-alert-triangle"
1212
>
13+
<title>警告アイコン</title>
1314
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
1415
<path d="M12 9v4" />
1516
<path d="M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z" />

website/src/components/icons/CaretRightCircleIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const CaretRightCircleIcon = () => {
1010
stroke-linejoin="round"
1111
class="icon icon-tabler icons-tabler-outline icon-tabler-circle-caret-right"
1212
>
13+
<title>再生アイコン</title>
1314
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
1415
<path d="M15 12l-4 -4v8z" />
1516
<path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" />

website/src/components/icons/ChevronLeftIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const ChevronLeftIcon = () => {
1010
stroke-linejoin="round"
1111
class="icon icon-tabler icons-tabler-outline icon-tabler-chevron-left"
1212
>
13+
<title>左矢印アイコン</title>
1314
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
1415
<path d="M15 6l-6 6l6 6" />
1516
</svg>

website/src/components/icons/ChevronRightIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const ChevronRightIcon = () => {
1010
stroke-linejoin="round"
1111
class="icon icon-tabler icons-tabler-outline icon-tabler-chevron-right"
1212
>
13+
<title>右矢印アイコン</title>
1314
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
1415
<path d="M9 6l6 6l-6 6" />
1516
</svg>

website/src/components/icons/HelpCircleIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const HelpCircleIcon = () => {
1010
stroke-linejoin="round"
1111
class="icon icon-tabler icons-tabler-outline icon-tabler-help"
1212
>
13+
<title>ヘルプアイコン</title>
1314
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
1415
<path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" />
1516
<path d="M12 17l0 .01" />

website/src/components/icons/HomeIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const HomeIcon = () => {
1010
stroke-linejoin="round"
1111
class="icon icon-tabler icons-tabler-outline icon-tabler-home"
1212
>
13+
<title>ホームアイコン</title>
1314
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
1415
<path d="M5 12l-2 0l9 -9l9 9l-2 0" />
1516
<path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />

website/src/components/icons/InfoCircleIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const InfoCircleIcon = () => {
1010
stroke-linejoin="round"
1111
class="icon icon-tabler icons-tabler-outline icon-tabler-info-circle"
1212
>
13+
<title>情報アイコン</title>
1314
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
1415
<path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0" />
1516
<path d="M12 9h.01" />

website/src/components/templates/BaseTemplate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
101101
type="font/woff2"
102102
crossOrigin="anonymous"
103103
/>
104-
<link href="/src/styles.css" rel="stylesheet"></link>
104+
<link href="/src/styles.css" rel="stylesheet" />
105105
<script
106106
defer
107107
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"
108-
></script>
108+
/>
109109
</head>
110110

111111
<body class="no-js docs has-outline min-h-screen flex flex-col">

website/src/components/templates/CategoryTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const CategoryTemplate: FC<CategoryTemplateProps> = ({
2828
<h2 id="definitions">定義</h2>
2929
<ul class="subgridded">
3030
{page.body.content.items.map((item) => (
31-
<li>
31+
<li key={item.route}>
3232
<div>
3333
<a href={item.route}>
3434
{item.code ? <code>{item.name}</code> : item.name}

website/src/components/templates/FuncTemplate.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ export const FuncTemplate: FC<FuncTemplateProps> = ({
7979
</h2>
8080

8181
{content.scope.map((method, index) => (
82-
<div class="mb-8 pb-6 border-b border-gray-100 last:border-0">
82+
<div
83+
key={method.name}
84+
class="mb-8 pb-6 border-b border-gray-100 last:border-0"
85+
>
8386
<h3
8487
id={`definitions-${method.name}`}
8588
class="method-head mb-3 flex items-center gap-2"

0 commit comments

Comments
 (0)