Skip to content

Commit f5bcfab

Browse files
authored
feat: add Biome pre-commit hook for JSON formatting (#322)
* 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 * style: remove extra blank line * chore: update Biome pre-commit to v0.6.1 * fix: remove duplicate --write flag from biome-check * fix: remove redundant args from biome-check hook to avoid duplication errors
1 parent eb30e3d commit f5bcfab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.pre-commit-config.yaml

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

116+
- repo: https://github.com/biomejs/pre-commit
117+
rev: "v0.6.1"
118+
hooks:
119+
- id: biome-check
120+
name: run biome-check
121+
description: Run Biome linter and formatter for JSON files
122+
additional_dependencies: ["@biomejs/biome"]
123+
116124
- repo: https://github.com/pre-commit/mirrors-prettier
117125
rev: v4.0.0-alpha.8
118126
hooks:

0 commit comments

Comments
 (0)