File size: 1,512 Bytes
65be7f3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Additional rules specific to this project
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation only
'style', // Formatting, missing semi-colons, etc.
'refactor', // Code change that neither fixes a bug nor adds a feature
'perf', // Performance improvement
'test', // Adding tests
'build', // Build system changes
'ci', // CI configuration changes
'chore', // Other changes that don't modify src or test files
'revert', // Revert a previous commit
],
],
'scope-enum': [
2,
'always',
[
// Core modules
'kg', // Knowledge graph related
'embedder', // Embedding service
'ontology', // Data models and ontology
'agent', // Agent-related functionality
'planner', // Planning and orchestration
'ui', // User interface
'api', // API endpoints
// Infrastructure
'deps', // Dependencies
'config', // Configuration
'scripts', // Scripts and automation
'ci', // CI/CD
'docs', // Documentation
'tests', // Testing infrastructure
],
],
'subject-max-length': [2, 'always', 72],
'header-max-length': [2, 'always', 100],
},
}; |