-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathlefthook.yml
More file actions
39 lines (38 loc) · 1.18 KB
/
lefthook.yml
File metadata and controls
39 lines (38 loc) · 1.18 KB
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
33
34
35
36
37
38
39
pre-commit:
parallel: true
commands:
format:
glob: "*.{js,jsx,ts,tsx,css,scss,json,vue}"
run: pnpm exec prettier --write {staged_files}
stage_fixed: true
lint:
glob: "*.{js,jsx,ts,tsx}"
run: pnpm exec eslint --fix --no-warn-ignored {staged_files}
stage_fixed: true
cli-build:
glob: "apps/cli/**/*.{ts,js}"
run: pnpm --prefix apps/cli run build
vscode-lint:
root: "apps/vscode-ext/"
glob: "apps/vscode-ext/**/*.{ts,js}"
run: pnpm run lint
docs-check-imports:
root: "apps/docs/"
glob: "apps/docs/**/*.mdx"
run: pnpm run check:imports
docs-test-examples:
root: "apps/docs/"
glob: "apps/docs/**/*.mdx"
run: pnpm run test:examples
react-type-check:
root: "packages/react/"
glob: "packages/react/**/*.{ts,tsx}"
run: pnpm run type-check
generate-all:
glob: "packages/document-api/src/contract/**/*.ts"
run: pnpm run generate:all && git add apps/docs/document-api/reference apps/docs/document-api/overview.mdx apps/docs/document-engine/sdks.mdx
stage_fixed: true
commit-msg:
commands:
commitlint:
run: pnpm exec commitlint --edit {1}