commitlint.config.js 521 B

12345678910111213
  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': [2, 'always', ['feat', 'fix', 'perf', 'style', 'docs', 'test', 'refactor', 'build', 'ci', 'chore', 'revert', 'wip', 'workflow', 'types', 'release']]
  12. }
  13. }