export default {
extends: ['@commitlint/config-conventional'],
rules: {
// Allow longer subjects for detailed commit messages
'header-max-length': [2, 'always', 100],
// Conventional commit types
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation only
'style', // Formatting, no code change
'refactor', // Code change that neither fixes a bug nor adds a feature
'perf', // Performance improvement
'test', // Adding or updating tests
'build', // Build system or external dependencies
'ci', // CI configuration
'chore', // Other changes that don't modify src or test files
'revert', // Revert a previous commit
],
],
},
};