2 Star 1 Fork 2

mamh-mixed/grafana-grafana

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
lefthook.yml 910 Bytes
一键复制 编辑 原始数据 按行查看 历史
skip_output:
- meta
- execution_out
- skips
min_version: 1.4.3
rc: ./lefthook.rc
pre-commit:
parallel: true
commands:
frontend-betterer:
glob: '*.{ts,tsx}'
run: |
yarn betterer precommit {staged_files}
stage_fixed: true
frontend-lint:
glob: '*.{js,ts,tsx}'
run: |
yarn eslint --ext .js,.tsx,.ts --cache --fix {staged_files}
yarn prettier --write {staged_files}
stage_fixed: true
other-format:
glob: '*.{json,scss,md,mdx}'
run: yarn prettier --write {staged_files}
stage_fixed: true
backend-format:
glob: '*pkg/**/*.go'
run: gofmt -w -s {staged_files}
stage_fixed: true
cue-fix-kinds:
glob: '*kinds/**/*.cue'
run: make fix-cue
stage_fixed: true
cue-fix-public:
glob: '*public/app/plugins/**/**/*.cue'
run: make fix-cue
stage_fixed: true
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mamh-mixed/grafana-grafana.git
git@gitee.com:mamh-mixed/grafana-grafana.git
mamh-mixed
grafana-grafana
grafana-grafana
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385