1.AI 协作文档体系重构(objections/worklines/contracts+matrix.md) 2.coord 仲裁文档(final-decisions/cross-review/final-rulings/orchestration) 3.各服务 01/02 文档补全 4.共享包初始化(shared-ts/shared-go/hooks/ui-components/ui-tokens) 5.Proto 契约补全 6.004 架构影响地图更新 7.端口分配表 8.设计规格文档
10 lines
463 B
JavaScript
10 lines
463 B
JavaScript
module.exports = {
|
||
'*.{ts,tsx}': ['eslint --fix', 'prettier --write'],
|
||
// Go 工具链不在 git hook PATH 中,Go 文件格式化由 go fmt 手动执行
|
||
// golangci-lint 安装后恢复:['gofmt -w', 'golangci-lint run --fix']
|
||
'*.py': ['ruff check --fix', 'ruff format'],
|
||
// buf format 一次只接受 1 个文件参数,需逐个调用
|
||
'*.proto': (files) => files.map((file) => `buf format --write "${file}"`),
|
||
'*.md': ['prettier --write'],
|
||
};
|