Repository navigation
Expand file tree
/
Copy pathlefthook.yml
More file actions
62 lines (58 loc) · 1.73 KB
/
Copy pathlefthook.yml
File metadata and controls
62 lines (58 loc) · 1.73 KB
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
59
60
61
62
pre-commit:
parallel: true
commands:
check:
glob:
- '*.{ts,tsx}'
- 'src/**/*.{ts,tsx}'
- 'dev/**/*.{ts,tsx,js,mjs,cjs}'
- 'dev/**/*.d.ts'
- 'scripts/*.{js,mjs,cjs}'
- 'scripts/**/*.{js,mjs,cjs}'
- 'packages/vscode/**'
- 'package.json'
- 'pnpm-lock.yaml'
- 'tsconfig.json'
- 'tsconfig.*.json'
- '.oxlintrc.json'
- '.oxfmtrc.json'
run: pnpm run check:fix
stage_fixed: true
fail_text: 'Static checks failed. Please fix the issues and try again.'
format:
run: pnpm run format:fix
stage_fixed: true
fail_text: 'Oxfmt formatting failed. Please check the issues and try again.'
knip:
glob:
- 'src/**/*.{ts,tsx,js,jsx,json,css}'
- 'dev/**/*.{ts,tsx,js,jsx,json,css}'
- 'packages/vscode/**'
- 'scripts/*.{js,mjs,cjs}'
- 'scripts/**/*.{js,mjs,cjs}'
- 'package.json'
- 'pnpm-lock.yaml'
- 'tsconfig.json'
- 'tsconfig.*.json'
- 'vite.config.ts'
- 'vitest.config.ts'
- 'postcss.config.js'
- 'knip.json'
run: pnpm run knip
fail_text: 'Knip detected unused files/exports/dependencies. Please fix the issues and try again.'
test:
glob:
- 'src/**/*.{ts,tsx}'
- 'dev/**/*.{ts,tsx,js,mjs,cjs}'
- 'scripts/*.{js,mjs,cjs}'
- 'scripts/**/*.{js,mjs,cjs}'
- 'packages/vscode/**'
- 'package.json'
- 'vitest.config.ts'
run: pnpm test
fail_text: 'Tests failed. Please fix failing tests and try again.'
pre-push:
commands:
build:
run: pnpm run build
fail_text: 'Build failed. Please fix build errors before pushing.'