-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.yml
42 lines (40 loc) · 980 Bytes
/
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
# cSpell:word commitlint typecheck stylelint prettierrc
pre-commit:
parallel: true
colors: false
commands:
prettier:
glob: '*.{js,jsx,ts,tsx}'
run: npm run prettier:ci {staged_files}
exclude: ".prettierrc.js"
eslint:
glob: '*.{js,jsx,ts,tsx}'
run: npm run eslint:ci {staged_files}
stylelint:
glob: './**/*.styled.jsx' # For CSS-in-JS
run: npm run stylelint:ci {staged_files}
markdown-link-check:
glob: '*.md'
run: npx markdown-link-check {staged_files}
commit-msg:
parallel: true
colors: false
commands:
lint-commit-msg:
run: npx commitlint --edit --color=false --config commitlint.config.js
skip:
- merge
- rebase
lint:
parallel: true
commands:
test:
run: npm test
prettier:
run: npm run prettier
eslint:
run: npm run eslint
stylelint:
run: npm run stylelint
markdown-link-check:
run: npx markdown-link-check