-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathlefthook.yml
More file actions
27 lines (27 loc) · 993 Bytes
/
lefthook.yml
File metadata and controls
27 lines (27 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pre-commit:
parallel: true
jobs:
- name: lint-extension
root: "packages/extension/"
glob: "*.{js,ts,jsx,tsx,json}"
run: npx biome check --no-errors-on-unmatched {staged_files}
- name: lint-phpunit
root: "packages/phpunit/"
glob: "*.{js,ts,jsx,tsx,json}"
run: npx biome check --no-errors-on-unmatched {staged_files}
- name: typecheck-extension
root: "packages/extension/"
glob: "*.{ts,tsx}"
run: npx tsc --noEmit
- name: typecheck-phpunit
root: "packages/phpunit/"
glob: "*.{ts,tsx}"
run: npx tsc --noEmit
- name: pint-phpunit-stub
root: "packages/phpunit/tests/fixtures/phpunit-stub/"
glob: "*.php"
run: bash -c 'command -v pint >/dev/null 2>&1 && pint --test {staged_files} || true'
- name: pint-pest-stub
root: "packages/phpunit/tests/fixtures/pest-stub/"
glob: "*.php"
run: bash -c 'command -v pint >/dev/null 2>&1 && pint --test {staged_files} || true'