commitlint.config.js 760 B

123456789101112131415161718192021222324
  1. export default {
  2. extends: ['@commitlint/config-conventional'],
  3. rules: {
  4. 'type-enum': [
  5. 2,
  6. 'always',
  7. [
  8. 'feat', // New feature
  9. 'fix', // Bug fix
  10. 'docs', // Documentation only changes
  11. 'style', // Code style changes (formatting, etc)
  12. 'refactor', // Code refactoring
  13. 'perf', // Performance improvements
  14. 'test', // Adding or updating tests
  15. 'build', // Build system or dependencies
  16. 'ci', // CI/CD changes
  17. 'chore', // Other changes that don't modify src
  18. 'revert', // Revert previous commit
  19. ],
  20. ],
  21. 'scope-case': [2, 'always', 'kebab-case'],
  22. 'subject-case': [0], // Allow any case for subject
  23. },
  24. };