Skip to content

Commit 3f0725c

Browse files
authored
🔧 chore: prettierの導入 #63
1 parent 2488653 commit 3f0725c

File tree

12 files changed

+50
-25
lines changed

12 files changed

+50
-25
lines changed

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ignore artifacts:
2+
.next
3+
docs
4+
.github

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.formatOnSave": true
4+
}

Contributors.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"favoriteStack": "React",
66
"text": "Hi there 👋 ."
77
}
8-
]
8+
]

package-lock.json

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

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"format": "prettier . --write"
1011
},
1112
"dependencies": {
1213
"@emotion/react": "^11.11.4",
@@ -25,6 +26,7 @@
2526
"eslint": "^8",
2627
"eslint-config-next": "14.1.3",
2728
"postcss": "^8",
29+
"prettier": "3.2.5",
2830
"tailwindcss": "^3.3.0",
2931
"typescript": "^5"
3032
}

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const notojp = Noto_Sans_JP({
1212
weight: ["400", "500"],
1313
subsets: ["latin"],
1414
variable: "--font-notojp",
15-
})
15+
});
1616

1717
export const metadata: Metadata = {
1818
title: "Create Next App",

src/app/loading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
export default function Loading() {
55
// Or a custom loading skeleton component
6-
return <p>Loading...</p>
7-
}
6+
return <p>Loading...</p>;
7+
}

src/app/not-found.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// document: https://nextjs.org/docs/app/api-reference/file-conventions/not-found
22
// 以下記述しないとエラーが出たためドキュメントよりコピペ
33

4-
import Link from 'next/link'
5-
4+
import Link from "next/link";
5+
66
export default function NotFound() {
77
return (
88
<div>
99
<h2>Not Found</h2>
1010
<p>Could not find requested resource</p>
1111
<Link href="/">Return Home</Link>
1212
</div>
13-
)
14-
}
13+
);
14+
}

src/app/page.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,19 @@ export default function Home() {
88
<>
99
<section className="flex justify-center max-w-7xl w-11/12 mx-auto gap-16 border-box h-screen items-center">
1010
<div className="flex-1">
11-
<p
12-
className="bg-zinc-100 inline-block px-4 py-2">
13-
<span className="text-2xl font-bold text-red-600">
14-
1234
15-
</span>人が参加中
11+
<p className="bg-zinc-100 inline-block px-4 py-2">
12+
<span className="text-2xl font-bold text-red-600">1234</span>
13+
人が参加中
1614
</p>
17-
<p
18-
className="text-3xl font-bold mt-4">
19-
誰でも簡単に<br />コントリビューション体験
15+
<p className="text-3xl font-bold mt-4">
16+
誰でも簡単に
17+
<br />
18+
コントリビューション体験
2019
</p>
21-
<h2
22-
className="bg-red-600 text-white text-5xl inline-block px-4 py-2 font-bold mt-4">first-contributions-ja</h2>
23-
<p
24-
className="mt-4">
20+
<h2 className="bg-red-600 text-white text-5xl inline-block px-4 py-2 font-bold mt-4">
21+
first-contributions-ja
22+
</h2>
23+
<p className="mt-4">
2524
完全日本語のコントリビューション体験リポジトリです。フォーク、クローン、コミット、プルリクを行うことでOSSプロジェクト貢献方法を学べます。
2625
</p>
2726
</div>

0 commit comments

Comments
 (0)