mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
chore: configure lefthook to work
This commit is contained in:
12
lefthook.yml
12
lefthook.yml
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user