module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation only changes
'style', // Changes that do not affect the meaning of the code (white-space, formatting, etc)
'refactor', // A code change that neither fixes a bug nor adds a feature
'perf', // A code change that improves performance
'test', // Adding missing tests or correcting existing tests
'build', // Changes that affect the build system or external dependencies
'ci', // Changes to our CI configuration files and scripts
'chore', // Other changes that don't modify src or test files
'revert' // Reverts a previous commit
]
],
'header-max-length': [2, 'always', 300],
'subject-case': [2, 'never', ['start-case', 'pascal-case', 'upper-case']],
'subject-max-length': [2, 'always', 200],
'body-max-line-length': [2, 'always', 200],
'footer-max-line-length': [2, 'always', 200]
}
};