commitlint.config.js 678 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. 'subject-case': [0],
  11. 'type-enum': [
  12. 2,
  13. 'always',
  14. [
  15. 'feat',
  16. 'fix',
  17. 'perf',
  18. 'style',
  19. 'docs',
  20. 'test',
  21. 'refactor',
  22. 'build',
  23. 'ci',
  24. 'chore',
  25. 'revert',
  26. 'wip',
  27. 'workflow',
  28. 'types',
  29. 'release',
  30. ],
  31. ],
  32. },
  33. };