Skip to content

Commit 0c51c5f

Browse files
authored
🔧 Add frontend linter pre-commit hook (#1791)
1 parent 6453dea commit 0c51c5f

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
@@ -24,6 +24,14 @@ repos:
2424
args:
2525
- --fix
2626
- id: ruff-format
27+
- repo: local
28+
hooks:
29+
- id: local-biome-check
30+
name: biome check
31+
entry: npx biome check --write --files-ignore-unknown=true --no-errors-on-unmatched
32+
language: system
33+
types: [text]
34+
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"
2735

2836
ci:
2937
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

0 commit comments

Comments
 (0)