mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-06-28 14:55:46 +00:00
19 lines
389 B
YAML
19 lines
389 B
YAML
# lefthook.yml
|
|
|
|
pre-commit:
|
|
parallel: true
|
|
commands:
|
|
go-lint:
|
|
glob: "**/*.go"
|
|
run: golangci-lint run --new-from-rev=HEAD~ {staged_files}
|
|
|
|
frontend-lint:
|
|
root: "web/frontend/"
|
|
glob: "**/*.{js,jsx,ts,tsx}"
|
|
run: npx eslint {staged_files}
|
|
|
|
frontend-type-check:
|
|
root: "web/frontend/"
|
|
glob: "**/*.{ts,tsx}"
|
|
run: npm run type-check
|