Files
revanced-bots/lefthook.yml
2024-06-24 18:23:14 +07:00

17 lines
534 B
YAML
Executable File

pre-commit:
parallel: true
commands:
format:
files: git diff --name-only --cached --diff-filter=AM @{push}
glob: '*.{js,ts,json,yml,md}'
run: bunx prettier --ignore-path .gitignore --check {files}
lint:
files: git diff --name-only --cached --diff-filter=AM @{push}
glob: '*.{js,ts}'
run: bunx eslint --cache {files}
commit-msg:
parallel: false
commands:
commitlint:
run: bunx commitlint --edit