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

25 lines
744 B
YAML
Executable File

pre-commit:
parallel: true
commands:
types:
files: git diff --name-only @{push}
glob: '*.{js,ts}'
run: npx tsc --noEmit
types_example:
files: git diff --name-only @{push}
glob: '*.{js,ts}'
run: npx tsc --project example/tsconfig.json --noEmit
format:
files: git diff --name-only @{push}
glob: '*.{js,ts}'
run: npx prettier --check {files}
lint:
files: git diff --name-only @{push}
glob: '*.{js,ts}'
run: npx eslint --cache {files}
commit-msg:
parallel: false
commands:
commitlint:
run: npx commitlint --edit