-
Notifications
You must be signed in to change notification settings - Fork 0
/
lefthook.yml
32 lines (28 loc) · 1.22 KB
/
lefthook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# yaml-language-server: $schema=https://json.schemastore.org/lefthook.json
pre-commit:
parallel: true
commands:
examples/nextjs/check:
root: examples/nextjs
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx}"
run: bun run eslint --fix {staged_files}
packages/remark-callout/check:
root: packages/remark-callout
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: bun run biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
stage_fixed: true
packages/remark-typedoc-astro-link/check:
root: packages/remark-typedoc-astro-link
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: bun run biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
stage_fixed: true
packages/website/check:
root: packages/website
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,html,css,astro,yaml,yml}"
run: >
bun run biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} &&
bun run prettier --write {staged_files}
stage_fixed: true
check-lockfile:
glob: "**/package.json"
run: bun install --frozen-lockfile