mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-05 05:37:09 +00:00
build: add lefthook git hooks for lint, format, and commitlint
VA-851
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
pre-commit:
|
||||
parallel: true
|
||||
commands:
|
||||
lint:
|
||||
glob: "*.{js,jsx,ts,tsx}"
|
||||
run: oxlint {staged_files}
|
||||
format:
|
||||
glob: "*.{js,jsx,ts,tsx,json,css,md,yaml,yml}"
|
||||
run: oxfmt --check {staged_files}
|
||||
|
||||
commit-msg:
|
||||
commands:
|
||||
commitlint:
|
||||
run: commitlint --edit "{1}"
|
||||
Reference in New Issue
Block a user