chore: configure lefthook to work

This commit is contained in:
PalmDevs
2023-11-25 16:02:55 +07:00
parent 8d7bd40fb7
commit 72adec51b4

View File

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