-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlefthook.yml
More file actions
35 lines (34 loc) · 838 Bytes
/
lefthook.yml
File metadata and controls
35 lines (34 loc) · 838 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
28
29
30
31
32
33
34
35
pre-commit:
# piped: true
parallel: true
commands:
style-lint:
glob: '*.{css,scss}'
run: pnpm lint:css {staged_files}
php-lint:
glob: '*.{php}'
run: pnpm lint:php {staged_files}
php-test:
glob: '*{php}'
run: pnpm test:php {staged_files}
php-bitflow-pro-compatibility:
glob: 'pro/backend/**/*.php'
run: pnpm bit-flow-pro-compat {staged_files}
php-bitflow-compatibility:
glob: 'backend/**/*.php'
run: pnpm bit-flow-compat {staged_files}
ts-lint:
glob: '*.{js,ts,jsx,tsx}'
run: pnpm lint
pretty:
run: pnpm pretty:fix
ts-check:
glob: '*.{ts,tsx}'
run: pnpm ts-check
test:
glob: '*.test.{js,ts,jsx,tsx}'
run: pnpm test
commit-msg:
commands:
commit-lint:
run: pnpm commitlint --edit {1}