-
Notifications
You must be signed in to change notification settings - Fork 1
/
lefthook.yml
53 lines (50 loc) · 1.17 KB
/
lefthook.yml
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
# cSpell:word commitlint typecheck stylelint
pre-commit:
parallel: true
commands:
prettier:
glob: "*.{js,ts}"
run: npm run prettier:ci {staged_files}
eslint:
glob: "*.{js,ts}"
run: npm run eslint:ci {staged_files}
commit-msg:
parallel: true
commands:
lint-commit-msg:
run: npx commitlint --edit --color --config commitlint.config.js
skip:
- merge
- rebase
spell-check:
run: npm run spelling --no-summary {1}
skip:
- merge
- rebase
pre-push:
parallel: true
commands:
spelling:
glob: '*.{js,ts,md}'
run: npm run spelling:ci {staged_files}
markdown-link-check:
glob: '*.md'
run: npx markdown-link-check {staged_files}
tests:
files: git diff --name-only @{push}
glob: "*.{js,ts}"
run: jest --findRelatedTests {files}
lint:
parallel: true
commands:
test:
run: npm test --passWithNoTests --findRelatedTests
prettier:
run: npm run prettier
eslint:
run: npm run eslint
spelling:
run: npm run spelling
markdown-link-check:
glob: '*.md'
run: npx markdown-link-check {staged_files}