-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
111 lines (104 loc) · 2.41 KB
/
lefthook.yml
File metadata and controls
111 lines (104 loc) · 2.41 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#
# Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
#
assert_lefthook_installed: true
colors: true
no_tty: false
min_version: 1.5.0
pre-commit:
piped: true
commands:
install:
glob: "./{pnpm-lock.yaml,lefthook.yml}"
run: "pnpm install && pnpm lefthook install"
stage_fixed: true
nx-sync:
glob: "**/*"
run: "pnpm nx sync"
stage_fixed: true
prepare:
glob: "**/{lefthook.yml,biome.json}"
run: pnpm exec storm-prepare
validate:
glob: "**/*"
run: "pnpm exec storm-pre-commit {staged_files}"
stage_fixed: true
lint:
glob:
- "*.js"
- "*.ts"
- "*.cjs"
- "*.mjs"
- "*.d.cts"
- "*.d.mts"
- "*.jsx"
- "*.tsx"
- "*.json"
- "*.jsonc"
- "*.yaml"
- "*.yml"
- "*.md"
- "*.mdx"
- "*.markdown"
- "*.css"
- "*.scss"
- "*.sass"
- "*.less"
- "*.stylus"
- "*.graphql"
- "*.gql"
- "*.xml"
- "*.svg"
- "*.env"
- ".env.{local,development,test,production,staging}"
run: pnpm exec storm-lint all --skip-cspell --skip-circular-deps
stage_fixed: true
commit-msg:
commands:
validate:
run: "pnpm exec storm-git commitlint --message {1}"
pre-push:
piped: true
commands:
nx-sync:
glob: "**/*"
run: "pnpm nx sync"
stage_fixed: true
build:
glob: "**/*"
run: pnpm build
stage_fixed: true
validate:
glob: "**/*"
run: "pnpm exec storm-pre-push {staged_files}"
stage_fixed: true
lint-codeowners:
glob: "**/CODEOWNERS"
run: pnpm exec storm-lint codeowners
readme:
glob: "**/*"
run:
'pnpm exec storm-git readme --templates="tools/readme-templates"
--project="@monorepo-template/monorepo" '
stage_fixed: true
format:
glob: "**/*"
run: "pnpm format {staged_files}"
stage_fixed: true
post-merge:
commands:
validate:
glob: "**/*.*"
run: "pnpm exec storm-post-merge {staged_files}"
stage_fixed: true
post-checkout:
commands:
validate:
glob: "**/*.*"
run: "pnpm exec storm-post-checkout {staged_files}"
post-commit:
commands:
validate:
glob: "**/*.*"
run: "pnpm exec storm-post-commit {staged_files}"