-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathlefthook.yml
More file actions
23 lines (22 loc) · 612 Bytes
/
Copy pathlefthook.yml
File metadata and controls
23 lines (22 loc) · 612 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pre-commit:
commands:
lint-ts:
glob: "*.ts"
stage_fixed: true
run: pnpm exec eslint --fix {staged_files}
format-ts:
glob: "*.ts"
stage_fixed: true
run: pnpm exec prettier --write {staged_files}
format-md-yaml:
glob: "*.{md,yaml,yml}"
stage_fixed: true
run: pnpm exec prettier --write {staged_files}
readme-toc:
glob: "README.md"
stage_fixed: true
run: pnpm exec markdown-toc -i {staged_files} && pnpm exec prettier --write {staged_files}
commit-msg:
commands:
commitlint:
run: pnpm exec commitlint --edit {1}