Files
zhangzhenbing 9ddecbdb9a feat: 完成梦象虚拟电厂集中门户基础框架搭建
新增登录页、布局、路由、Pinia状态管理、Mock数据等核心模块,配置环境变量、Vite、ESLint、Prettier、CommitLint等开发工具,添加品牌资源与全局样式。
2026-11-12 17:00:48 +08:00

57 lines
1.4 KiB
JavaScript

/* eslint-env node */
// 提交信息校验规则,与 .trae/rules/git-commit-message.md 保持一致
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
// 提交类型白名单(必填、小写)
"type-enum": [
2,
"always",
[
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"chore",
"ci",
"revert",
"build",
],
],
"type-empty": [2, "never"],
"subject-empty": [2, "never"],
// 主题描述统一中文,关闭大小写类检查
"subject-case": [0],
"scope-case": [0],
// 标题(type(scope): subject 整体)不超过 100 字符,正文每行不超过 100 字符
"header-max-length": [2, "always", 100],
"body-max-line-length": [2, "always", 100],
"body-leading-blank": [2, "always"],
"footer-leading-blank": [2, "always"],
// 主题不以句号结尾(中文句号"。"由 .trae/rules/git-commit-message.md 约束)
"subject-full-stop": [2, "never", "."],
// scope 建议使用项目既有模块名(仅提示,不阻断提交)
"scope-enum": [
1,
"always",
[
"login",
"portal",
"systems",
"utils",
"router",
"store",
"api",
"styles",
"layout",
"components",
"deps",
"project",
],
],
},
};