.pre-commit-config.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. # See https://pre-commit.com for more information
  2. # See https://pre-commit.com/hooks.html for more hooks
  3. repos:
  4. - repo: https://github.com/pre-commit/pre-commit-hooks
  5. rev: v2.4.0
  6. hooks:
  7. - id: check-added-large-files
  8. - id: check-case-conflict
  9. - id: check-executables-have-shebangs
  10. - id: check-merge-conflict
  11. - id: check-symlinks
  12. - id: check-yaml
  13. - id: detect-private-key
  14. - id: end-of-file-fixer
  15. - id: mixed-line-ending
  16. args: ['--fix=lf']
  17. - id: trailing-whitespace
  18. - repo: local
  19. hooks:
  20. - id: markdown-toc
  21. name: markdown-toc
  22. description: Runs https://github.com/jonschlinkert/markdown-toc
  23. entry: src/scripts/pre-commit-toc.js
  24. language: node
  25. additional_dependencies: [markdown-toc]
  26. files: .*\.md$
  27. exclude: ^src/jekyll/theme/
  28. # Prettier should be run late so that it can re-format any prior changes.
  29. - repo: https://github.com/prettier/prettier
  30. rev: 2.0.5
  31. hooks:
  32. - id: prettier
  33. exclude: ^src/jekyll/theme/