Files
Lynkedup-Node-Backend/commitlint.config.js
2025-12-16 22:26:18 +05:30

61 lines
1.1 KiB
JavaScript

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
'security' // Added for security-related changes
]
],
'scope-enum': [
2,
'always',
[
// Core SDKs
'security',
'storage',
'sync',
'policy',
'bff-client',
'runtime',
'trust',
'consent',
'analytics',
// Feature SDKs
'auth',
'tasks',
'messaging',
'memberships',
'media',
'location',
'notes',
// Apps
'pro-app',
'foundation-app',
'playground',
// Infrastructure
'monorepo',
'ci',
'deps',
'release'
]
],
'subject-case': [2, 'never', ['pascal-case', 'upper-case']],
'subject-max-length': [2, 'always', 72]
}
};