๐Ÿ“ฆ Kong / spec-editor

๐Ÿ“„ lefthook.yaml ยท 31 lines
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# Reference:
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md

pre-push:
  parallel: true
  commands:
    stylelint:
      skip:
        - merge
        - rebase
      run: pnpm run stylelint
    eslint:
      skip:
        - merge
        - rebase
      run: pnpm run lint
    typecheck:
      skip:
        - merge
        - rebase
      run: pnpm run typecheck

commit-msg:
  parallel: true
  commands:
    commitlint:
      skip:
        - merge
        - rebase
      run: pnpm commitlint --edit "$1"