-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
27 lines (26 loc) · 808 Bytes
/
lefthook.yml
File metadata and controls
27 lines (26 loc) · 808 Bytes
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
pre-commit:
parallel: true
commands:
prettier:
run: 'npx prettier --write "{staged_files}"'
glob: '**/*.{ts,tsx,js,jsx,json,md,css,scss,html}'
markdownlint:
run: 'npx markdownlint-cli2 --fix "{staged_files}"'
glob: '{docs/**/*.md,README.md,CONTRIBUTING.md,SECURITY.md}'
eslint:
run: 'npx eslint --fix "{staged_files}"'
glob: 'src/**/*.{ts,tsx,js,jsx}'
typecheck:
run: 'npm run type-check'
glob: '**/*.{ts,tsx}'
test:
run: 'bun test "{staged_files}"'
glob: '**/*.{spec.ts,spec.tsx,spec.js,spec.jsx,test.ts,test.tsx,test.js,test.jsx}'
pre-push:
parallel: false
commands:
typecheck:
run: 'npm run type-check'
# Unit tests only - E2E tests run in CI/CD via GitHub Actions
test:
run: 'bun test src/'