mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-16 07:50:50 +08:00
- 添加 commitlint 及 Conventional Commits 规范配置 - 添加 commit-msg husky hook 本地校验提交信息 - 添加 GitHub Actions PR 检查 workflow: - PR 标题符合 Conventional Commits - 所有 commit message 符合规范 - ESLint + TypeScript 类型检查 + i18n 检查
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
module.exports = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
rules: {
|
|
'type-enum': [
|
|
2,
|
|
'always',
|
|
['feat', 'fix', 'perf', 'refactor', 'docs', 'style', 'test', 'build', 'ci', 'chore', 'revert']
|
|
],
|
|
'subject-empty': [2, 'never'],
|
|
'type-empty': [2, 'never']
|
|
}
|
|
};
|