module.exports = { extends: ['@commitlint/config-conventional'], rules: { 'type-enum': [ 2, 'always', [ 'feat', // New feature 'fix', // Bug fix 'docs', // Documentation only changes 'style', // Changes that don't affect the code meaning 'refactor', // Code change that neither fixes a bug nor adds a feature 'perf', // Performance improvement 'test', // Adding missing tests or correcting existing tests 'build', // Changes that affect the build system or dependencies 'ci', // Changes to CI configuration files and scripts 'chore', // Other changes that don't modify src or test files 'revert' // Reverts a previous commit ] ], 'subject-case': [0], 'subject-empty': [2, 'never'], 'subject-full-stop': [2, 'never', '.'], 'type-case': [2, 'always', 'lower-case'], 'type-empty': [2, 'never'] } };