first commit

This commit is contained in:
2026-04-09 21:35:06 +08:00
commit 22fe6e069c
38 changed files with 12631 additions and 0 deletions

27
commitlint.config.js Normal file
View File

@@ -0,0 +1,27 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // 新功能
'fix', // 修复 bug
'docs', // 文档变更
'style', // 代码格式(不影响代码运行的变动)
'refactor', // 重构(既不是新增功能,也不是修改 bug 的代码变动)
'perf', // 性能优化
'test', // 添加测试或修改现有测试
'chore', // 构建过程或辅助工具的变动
'ci', // CI 配置文件和脚本的变动
'build', // 影响构建系统或外部依赖的更改
'revert', // 回滚提交
],
],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'header-max-length': [2, 'always', 100],
},
};