forked from scalar/scalar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
20 lines (20 loc) · 732 Bytes
/
Copy pathlefthook.yml
File metadata and controls
20 lines (20 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pre-commit:
commands:
vite-cleanup:
glob: '*'
run: find . -name 'vite.config.ts.timestamp-*' -delete
package_format:
glob: 'pnpm-lock.yaml'
run: pnpm script packages format; git add \*package.json pnpm-lock.yaml; echo PACKAGE FILES FORMATTED
biome-format:
glob: '*'
run: 'pnpm biome format --write && git add {staged_files}'
prettier:
glob: '*.{js,ts,jsx,tsx,vue,md,json,css,scss,html,yml,yaml}'
run: 'pnpm prettier --write {staged_files} && git add {staged_files}'
lint:
glob: '*'
run: 'pnpm biome lint --diagnostic-level=error --fix'
# lint-vue:
# glob: '*.{vue}'
# run: 'pnpm eslint {staged_files} --fix && git add {staged_files}'