Skip to content

Commit 2e27e5a

Browse files
committed
feat: add Biome pre-commit hook for JSON formatting
- Add Biome hook to run before Prettier - Catches JSON formatting issues locally - Faster feedback loop before pushing Fixes #319
1 parent eb30e3d commit 2e27e5a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ repos:
113113
name: run mixed-line-ending
114114
description: replaces or checks mixed line ending
115115

116+
117+
- repo: https://github.com/biomejs/pre-commit
118+
rev: "v0.1.0"
119+
hooks:
120+
- id: biome-check
121+
name: run biome-check
122+
description: Run Biome linter and formatter for JSON files
123+
additional_dependencies: ["@biomejs/biome"]
124+
args: ["--write", "--files-ignore-unknown=true"]
125+
116126
- repo: https://github.com/pre-commit/mirrors-prettier
117127
rev: v4.0.0-alpha.8
118128
hooks:

0 commit comments

Comments
 (0)