-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.lefthook.yml
More file actions
45 lines (39 loc) · 830 Bytes
/
.lefthook.yml
File metadata and controls
45 lines (39 loc) · 830 Bytes
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
pre-commit:
parallel: true
jobs:
- name: prettier
run: npx prettier --write --cache --ignore-unknown {staged_files}
stage_fixed: true
- name: eslint
run: npx eslint --fix --cache {staged_files}
glob:
- "*.js"
- "*.jsx"
- "*.ts"
- "*.tsx"
stage_fixed: true
- name: eslint (global)
run: npx eslint --fix --cache .
glob: .eslintrc.cjs
stage_fixed: true
pre-push:
piped: true
jobs:
- run: npm install
- name: lint
group:
parrallel: true
jobs:
- name: eslint
run: npx eslint --cache
- name: tsc
run: npm run check:tsc
post-merge:
only:
- ref: main
commands:
npm-install:
run: npm install --ignore-scripts
output:
- summary
- failure