commitlint.config.js 647 B

123456789101112131415161718192021222324252627282930313233
  1. module.exports = {
  2. ignores: [commit => commit.includes("init")],
  3. extends: ["@commitlint/config-conventional"],
  4. rules: {
  5. "body-leading-blank": [2, "always"],
  6. "footer-leading-blank": [1, "always"],
  7. "header-max-length": [2, "always", 108],
  8. "subject-empty": [2, "never"],
  9. "type-empty": [2, "never"],
  10. "type-enum": [
  11. 2,
  12. "always",
  13. [
  14. "feat",
  15. "fix",
  16. "perf",
  17. "style",
  18. "docs",
  19. "test",
  20. "refactor",
  21. "build",
  22. "ci",
  23. "chore",
  24. "revert",
  25. "wip",
  26. "workflow",
  27. "types",
  28. "release"
  29. ]
  30. ]
  31. }
  32. };