commitlint.config.js 511 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', 'Mod', 'Style', 'Perf', 'Refactor', 'Revert', 'Test', 'Docs', 'Chore', 'Workflow', 'CI', 'Wip', 'Types'],
  14. ],
  15. },
  16. };