/** * Commitlint 配置 * 验证 commit message 格式 */ import type { UserConfig } from '@commitlint/types' const config: UserConfig = { extends: ['@commitlint/config-conventional'], rules: { 'type-enum': [ 2, 'always', [ 'feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert', ], ], 'subject-case': [0], }, } export default config