Skip to content

Commit 720b47f

Browse files
committed
prettierの設定
1 parent 8ab6ad2 commit 720b47f

File tree

5 files changed

+33
-3
lines changed

5 files changed

+33
-3
lines changed

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
trailingComma: "es5"

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,17 @@ npm ci
1010
```bash
1111
npm run dev
1212
```
13-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
13+
[http://localhost:3000](http://localhost:3000) で開きます。
14+
15+
```bash
16+
npm run format
17+
```
18+
でコードを整形します。
19+
20+
```bash
21+
npm run lint
22+
```
23+
でコードをチェックします。出てくるwarningやerrorはできるだけ直しましょう。
1424

1525
## 技術スタック・ドキュメント・メモ
1626

app/[docs_id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default async function Page({
1414
try {
1515
mdContent = await readFile(
1616
join(process.cwd(), "docs", `${docs_id}.md`),
17-
"utf-8",
17+
"utf-8"
1818
);
1919
} catch (error) {
2020
console.error(error);

package-lock.json

Lines changed: 17 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 --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"format": "prettier --write app/"
1011
},
1112
"dependencies": {
1213
"next": "15.4.5",
@@ -23,6 +24,7 @@
2324
"daisyui": "^5.0.50",
2425
"eslint": "^9",
2526
"eslint-config-next": "15.4.5",
27+
"prettier": "^3.6.2",
2628
"tailwindcss": "^4",
2729
"typescript": "^5"
2830
}

0 commit comments

Comments
 (0)