commitlint.config.js 519 B

12345678910111213141516
  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. ["feat", "fix", "perf", "style", "docs", "test", "refactor", "build", "ci", "chore", "revert", "wip", "workflow", "types", "release"]
  14. ]
  15. }
  16. };