|
| 1 | +module.exports = { |
| 2 | + extends: ['@commitlint/config-conventional'], |
| 3 | + rules: { |
| 4 | + 'type-enum': [2, 'always', [ |
| 5 | + 'feat', // A new feature |
| 6 | + 'fix', // A bug fix |
| 7 | + 'docs', // Documentation only changes |
| 8 | + 'style', // Changes that do not affect code meaning |
| 9 | + 'refactor', // A code change that neither fixes a bug nor adds a feature |
| 10 | + 'perf', // A code change that improves performance |
| 11 | + 'test', // Adding missing tests or correcting existing tests |
| 12 | + 'build', // Build system or external dependencies |
| 13 | + 'ci', // CI configuration changes |
| 14 | + 'chore', // Other changes that don't modify src or test files |
| 15 | + 'revert', // Reverts a previous commit |
| 16 | + ]], |
| 17 | + 'type-case': [2, 'always', 'lowerCase'], |
| 18 | + 'type-empty': [2, 'never'], |
| 19 | + 'scope-case': [2, 'always', 'lowerCase'], |
| 20 | + 'subject-empty': [2, 'never'], |
| 21 | + 'subject-full-stop': [2, 'never', '.'], |
| 22 | + 'header-max-length': [2, 'always', 72], |
| 23 | + }, |
| 24 | +}; |
0 commit comments