Skip to content

Commit 4f97a30

Browse files
authored
install lefthook via bun (#528)
# PRの概要 bun 経由で lefthook をインストール ... と package.json を修正 - [ ] 改めてセルフレビューしたか - [ ] 手動での動作検証を行ったか - [ ] server の機能追加ならば、テストを書いたか - 理由: 書いた | server の機能追加ではない - [ ] 間違った使い方が存在するならば、それのドキュメントをコメントで書いたか - 理由: 書いた | 間違った使い方は存在しない - [ ] わかりやすいPRになっているか
1 parent 7b85df1 commit 4f97a30

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

bun.lockb

4.14 KB
Binary file not shown.

lefthook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ pre-commit:
1313
run: if [ "$(git branch --show-current)" == "main" ]; then echo "Cannot make commit on main! aborting..."; exit 1; fi
1414
cspell:
1515
glob: "*"
16-
run: bunx cspell --quiet -- {staged_files}
16+
run: bunx cspell --quiet .

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
"license": "ISC",
1212
"devDependencies": {
1313
"@biomejs/biome": "^1.9.1",
14-
"typescript": "^5.6.2"
14+
"@types/bun": "^1.1.10",
15+
"lefthook": "^1.8.2",
16+
"typescript": "^5.6.2",
17+
"cspell": "^8.14.4"
1518
},
1619
"dependencies": {
17-
"@types/bun": "^1.1.10",
18-
"cspell": "^8.14.4",
1920
"zod": "^3.23.8"
2021
},
21-
"trustedDependencies": ["@biomejs/biome"]
22+
"trustedDependencies": ["@biomejs/biome", "lefthook"]
2223
}

0 commit comments

Comments
 (0)