-
Notifications
You must be signed in to change notification settings - Fork 1
/
lefthook.yml
25 lines (25 loc) · 1017 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
pre-commit:
parallel: true
commands:
Prettier:
run: npm run format:fix
ESLint:
files: git diff --name-only HEAD | grep -e \.ts$ -e \.tsx$ || echo ''
run: npm run lint
StyleLint:
files: git diff --name-only HEAD | grep -e \.css$ -e \.tsx$ || echo ''
run: npm run lint:css
RemarkLint:
files: git diff --name-only HEAD | grep -e \.md$ -e \.markdown$ || echo ''
run: npm run lint:md
CheckTypo:
run: npm run check:spell
Test:
files: git diff --name-only HEAD | grep -e \.ts$ -e \.tsx$ || echo ''
run: npm run test:ci
License:
files: git diff --name-only HEAD | grep -e src/ || echo ''
run: bash add_license_to_files.sh && git add .
report_page_build:
files: git diff --name-only HEAD | grep "schema/report_data.json" || echo ''
run: npx json2ts ./schema/report_data.json > src/@types/report_data.d.ts --style.singleQuote --style.trailingComma=all --no-style.semi && git add src/@types/report_data.d.ts