mirror of
https://github.com/asyouplz/SpeechNote.git
synced 2026-07-22 06:43:33 +00:00
30 lines
1.2 KiB
JavaScript
30 lines
1.2 KiB
JavaScript
|
|
module.exports = {
|
||
|
|
extends: ['@commitlint/config-conventional'],
|
||
|
|
rules: {
|
||
|
|
// Subject line can be lowercase or sentence-case (more flexible)
|
||
|
|
'subject-case': [2, 'always', ['lower-case', 'sentence-case']],
|
||
|
|
// Maximum subject line length
|
||
|
|
'subject-max-length': [2, 'always', 72],
|
||
|
|
// Maximum body line length
|
||
|
|
'body-max-line-length': [1, 'always', 100],
|
||
|
|
// Type must be one of the allowed types
|
||
|
|
'type-enum': [
|
||
|
|
2,
|
||
|
|
'always',
|
||
|
|
[
|
||
|
|
'feat', // New feature
|
||
|
|
'fix', // Bug fix
|
||
|
|
'docs', // Documentation only
|
||
|
|
'style', // Code style (formatting, semicolons, etc)
|
||
|
|
'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/CD configuration
|
||
|
|
'chore', // Other changes that don't modify src or test files
|
||
|
|
'revert', // Reverts a previous commit
|
||
|
|
],
|
||
|
|
],
|
||
|
|
},
|
||
|
|
};
|