Skip to content

Commit f481867

Browse files
committed
pre-commit hook for docs formatting
1 parent 6b8f298 commit f481867

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/src/content/docs/features/ambiguity-resolution.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ const MAX_RETRIES = 3; // SCREAMING_SNAKE in all-caps context
8989
process.env.NODE_ENV; // SCREAMING_SNAKE for env vars
9090
```
9191

92-
<br /><br />
92+
<br />
93+
<br />
9394

9495
:::note
9596
These conventions only apply when there's actual ambiguity. If an

lefthook.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ pre-commit:
3737
run: taplo format {staged_files}
3838
stage_fixed: true
3939

40+
- name: docs-prettier
41+
root: docs/
42+
glob: "*.{md,mdx,astro}"
43+
run: pnpm format
44+
stage_fixed: true
45+
46+
- name: docs-check
47+
root: docs/
48+
glob: "*.{md,mdx,astro,ts,js,json}"
49+
run: pnpm check
50+
4051
# Checks group - runs in parallel
4152
- group:
4253
parallel: true

0 commit comments

Comments
 (0)