加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 649 Bytes
一键复制 编辑 原始数据 按行查看 历史
repos:
- repo: local
hooks:
- id: eslint
name: eslint
entry: scripts/lint.sh
language: system
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
- hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
- hooks:
- id: go-fmt
- id: go-lint
- id: go-imports
- id: go-unit-tests
- id: go-build
- id: go-mod-tidy
repo: git://github.com/dnephin/pre-commit-golang
rev: master
- hooks:
- id: commitizen
stages: [commit-msg]
repo: https://github.com/commitizen-tools/commitizen
rev: master
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化