module.exports = {
  extends: ['@commitlint/config-conventional'],
  rules: {
    'type-enum': [
      2,
      'always',
      ['feat', 'fix', 'chore', 'docs', 'style', 'refactor', 'test', 'perf', 'ci', 'build', 'revert'],
    ],
    'scope-enum': [
      2,
      'always',
      [
        'api-gateway', 'push-gateway',
        'iam', 'core-edu', 'classes', 'content', 'data-ana', 'msg', 'ai',
        'teacher-bff', 'student-bff', 'parent-bff',
        'teacher-portal', 'student-portal', 'parent-portal', 'admin-portal',
        'shared-proto', 'shared-ts', 'shared-go', 'shared-py', 'shared-tokens',
        'arch-scan', 'infra', 'docs', 'deps', 'release',
      ],
    ],
  },
};
