lefthook1.yml 631 B

1234567891011121314151617181920212223242526
  1. # SKIP CI in commit message to skip hooks
  2. skip_output:
  3. - meta
  4. - success
  5. - summary
  6. pre-commit:
  7. parallel: true
  8. commands:
  9. # format:
  10. # glob: "*.{js,jsx,ts,tsx,json,md}"
  11. # run: npx @biomejs/biome format --write --no-errors-on-unmatched {staged_files}
  12. # stage_fixed: true
  13. # lint:
  14. # glob: "*.{js,jsx,ts,tsx}"
  15. # run: npx @biomejs/biome lint --no-errors-on-unmatched {staged_files}
  16. # check-types:
  17. # glob: "*.{ts,tsx}"
  18. # run: npx tsc --noEmit
  19. commit-msg:
  20. commands:
  21. commitlint:
  22. run: npx commitlint --edit {1}
  23. # 允许空提交信息
  24. skip: merge|rebase