lefthook.yml 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # EXAMPLE USAGE:
  2. #
  3. # Refer for explanation to following link:
  4. # https://lefthook.dev/configuration/
  5. #
  6. # pre-push:
  7. # jobs:
  8. # - name: packages audit
  9. # tags:
  10. # - frontend
  11. # - security
  12. # run: yarn audit
  13. #
  14. # - name: gems audit
  15. # tags:
  16. # - backend
  17. # - security
  18. # run: bundle audit
  19. #
  20. # pre-commit:
  21. # parallel: true
  22. # jobs:
  23. # - run: yarn eslint {staged_files}
  24. # glob: "*.{js,ts,jsx,tsx}"
  25. #
  26. # - name: rubocop
  27. # glob: "*.rb"
  28. # exclude:
  29. # - config/application.rb
  30. # - config/routes.rb
  31. # run: bundle exec rubocop --force-exclusion {all_files}
  32. #
  33. # - name: govet
  34. # files: git ls-files -m
  35. # glob: "*.go"
  36. # run: go vet {files}
  37. #
  38. # - script: "hello.js"
  39. # runner: node
  40. #
  41. # - script: "hello.go"
  42. # runner: go run