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'], };