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]
  }
};