-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.yml
58 lines (55 loc) · 1.31 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
54
55
56
57
58
pre-commit:
parallel: true
commands:
prettier:
glob: '*.{js,jsx,ts,tsx}'
run: npm run prettier:ci {staged_files}
eslint:
glob: '*.{js,jsx,ts,tsx}'
run: npm run eslint:ci {staged_files}
stylelint:
glob: './**/*.styled.{jsx,tsx}' # For CSS-in-JS
run: npm run stylelint:ci {staged_files}
spelling:
glob: '*.{js,jsx,md,ts,tsx}'
run: npm run spelling:ci {staged_files}
markdown-link-check:
glob: '*.md'
run: npx markdown-link-check {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:
markdown-link-check:
glob: '*.md'
run: npx markdown-link-check {staged_files}
test:
run: npm run test --passWithNoTests
lint:
parallel: true
commands:
test:
run: npm test --passWithNoTests
prettier:
run: npm run prettier
eslint:
run: npm run eslint
stylelint:
run: npm run stylelint
spelling:
run: npm run spelling
markdown-link-check:
glob: '*.md'
run: npx markdown-link-check {staged_files}