Skip to content

Commit 199d370

Browse files
gn-t-kclaude
andcommitted
fix: Biome の設定を調整し、Lintエラーを修正
React Router 移行に伴い、Biome の設定を調整しました: - ルートとapps/webそれぞれに適切な除外設定を配置 - 自動生成ファイル(.react-router, .wrangler, worker-configuration.d.ts)を除外 - Tailwind CSS v4 の新構文を含む app.css を除外 また、以下の Lint エラーも修正しました: - CSSクラスの順序を Biome の推奨順に並び替え(useSortedClasses) - SVG要素にアクセシビリティのための title 要素を追加 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent eb9fbc8 commit 199d370

File tree

4 files changed

+28
-9
lines changed

4 files changed

+28
-9
lines changed

apps/web/app/root.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
6262
}
6363

6464
return (
65-
<main className="pt-16 p-4 container mx-auto">
65+
<main className="container mx-auto p-4 pt-16">
6666
<h1>{message}</h1>
6767
<p>{details}</p>
6868
{stack && (
69-
<pre className="w-full p-4 overflow-x-auto">
69+
<pre className="w-full overflow-x-auto p-4">
7070
<code>{stack}</code>
7171
</pre>
7272
)}

apps/web/app/welcome/welcome.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import logoLight from "./logo-light.svg";
44
export function Welcome({ message }: { message: string }) {
55
return (
66
<main className="flex items-center justify-center pt-16 pb-4">
7-
<div className="flex-1 flex flex-col items-center gap-16 min-h-0">
7+
<div className="flex min-h-0 flex-1 flex-col items-center gap-16">
88
<header className="flex flex-col items-center gap-9">
99
<div className="w-[500px] max-w-[100vw] p-4">
1010
<img
@@ -19,16 +19,16 @@ export function Welcome({ message }: { message: string }) {
1919
/>
2020
</div>
2121
</header>
22-
<div className="max-w-[300px] w-full space-y-6 px-4">
23-
<nav className="rounded-3xl border border-gray-200 p-6 dark:border-gray-700 space-y-4">
24-
<p className="leading-6 text-gray-700 dark:text-gray-200 text-center">
22+
<div className="w-full max-w-[300px] space-y-6 px-4">
23+
<nav className="space-y-4 rounded-3xl border border-gray-200 p-6 dark:border-gray-700">
24+
<p className="text-center text-gray-700 leading-6 dark:text-gray-200">
2525
What&apos;s next?
2626
</p>
2727
<ul>
2828
{resources.map(({ href, text, icon }) => (
2929
<li key={href}>
3030
<a
31-
className="group flex items-center gap-3 self-stretch p-3 leading-normal text-blue-700 hover:underline dark:text-blue-500"
31+
className="group flex items-center gap-3 self-stretch p-3 text-blue-700 leading-normal hover:underline dark:text-blue-500"
3232
href={href}
3333
target="_blank"
3434
rel="noreferrer"
@@ -60,6 +60,7 @@ const resources = [
6060
fill="none"
6161
className="stroke-gray-600 group-hover:stroke-current dark:stroke-gray-300"
6262
>
63+
<title>React Router Logo</title>
6364
<path
6465
d="M9.99981 10.0751V9.99992M17.4688 17.4688C15.889 19.0485 11.2645 16.9853 7.13958 12.8604C3.01467 8.73546 0.951405 4.11091 2.53116 2.53116C4.11091 0.951405 8.73546 3.01467 12.8604 7.13958C16.9853 11.2645 19.0485 15.889 17.4688 17.4688ZM2.53132 17.4688C0.951566 15.8891 3.01483 11.2645 7.13974 7.13963C11.2647 3.01471 15.8892 0.951453 17.469 2.53121C19.0487 4.11096 16.9854 8.73551 12.8605 12.8604C8.73562 16.9853 4.11107 19.0486 2.53132 17.4688Z"
6566
strokeWidth="1.5"
@@ -80,6 +81,7 @@ const resources = [
8081
fill="none"
8182
className="stroke-gray-600 group-hover:stroke-current dark:stroke-gray-300"
8283
>
84+
<title>Discord Logo</title>
8385
<path
8486
d="M15.0686 1.25995L14.5477 1.17423L14.2913 1.63578C14.1754 1.84439 14.0545 2.08275 13.9422 2.31963C12.6461 2.16488 11.3406 2.16505 10.0445 2.32014C9.92822 2.08178 9.80478 1.84975 9.67412 1.62413L9.41449 1.17584L8.90333 1.25995C7.33547 1.51794 5.80717 1.99419 4.37748 2.66939L4.19 2.75793L4.07461 2.93019C1.23864 7.16437 0.46302 11.3053 0.838165 15.3924L0.868838 15.7266L1.13844 15.9264C2.81818 17.1714 4.68053 18.1233 6.68582 18.719L7.18892 18.8684L7.50166 18.4469C7.96179 17.8268 8.36504 17.1824 8.709 16.4944L8.71099 16.4904C10.8645 17.0471 13.128 17.0485 15.2821 16.4947C15.6261 17.1826 16.0293 17.8269 16.4892 18.4469L16.805 18.8725L17.3116 18.717C19.3056 18.105 21.1876 17.1751 22.8559 15.9238L23.1224 15.724L23.1528 15.3923C23.5873 10.6524 22.3579 6.53306 19.8947 2.90714L19.7759 2.73227L19.5833 2.64518C18.1437 1.99439 16.6386 1.51826 15.0686 1.25995ZM16.6074 10.7755L16.6074 10.7756C16.5934 11.6409 16.0212 12.1444 15.4783 12.1444C14.9297 12.1444 14.3493 11.6173 14.3493 10.7877C14.3493 9.94885 14.9378 9.41192 15.4783 9.41192C16.0471 9.41192 16.6209 9.93851 16.6074 10.7755ZM8.49373 12.1444C7.94513 12.1444 7.36471 11.6173 7.36471 10.7877C7.36471 9.94885 7.95323 9.41192 8.49373 9.41192C9.06038 9.41192 9.63892 9.93712 9.6417 10.7815C9.62517 11.6239 9.05462 12.1444 8.49373 12.1444Z"
8587
strokeWidth="1.5"

apps/web/biome.jsonc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
{
22
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3-
"extends": ["../../biome.jsonc"]
3+
"extends": ["../../biome.jsonc"],
4+
"files": {
5+
"includes": [
6+
"**",
7+
"!**/dist/**",
8+
"!**/build/**",
9+
"!**/node_modules/**",
10+
"!**/.react-router/**",
11+
"!**/.wrangler/**",
12+
"!app/app.css",
13+
"!worker-configuration.d.ts"
14+
]
15+
}
416
}

biome.jsonc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
},
88
"files": {
99
"ignoreUnknown": false,
10-
"includes": ["**", "!**/dist/**", "!**/build/**", "!**/node_modules/**"]
10+
"includes": [
11+
"**",
12+
"!**/dist/**",
13+
"!**/build/**",
14+
"!**/node_modules/**"
15+
]
1116
},
1217
"formatter": {
1318
"enabled": true,

0 commit comments

Comments
 (0)