commitlint.config.js 713 B

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