forked from admob-plus/admob-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.yml
39 lines (36 loc) · 858 Bytes
/
lefthook.yml
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
36
37
38
39
commit-msg:
commands:
commitlint:
run: yarn commitlint -e
pre-commit:
parallel: true
commands:
fixer:
run: >
lefthook run fixer &&
git add {staged_files}
remark:
glob: "*.md"
run: yarn remark --no-stdout {staged_files}
swiftlint:
glob: "*.swift"
run: yarn node-swiftlint lint --strict --path {staged_files}
pkg-deps:
glob: package.json
run: yarn jest __tests__/package-json.ts
pre-push:
parallel: true
commands:
jest:
run: yarn jest
fixer:
parallel: true
commands:
js-fixer:
glob: "*.{js,jsx,ts,tsx}"
run: >
yarn prettier-eslint --write {staged_files} &&
yarn eslint --ext .js,.jsx,.ts,tsx --fix {staged_files}
pkg-json-fixed:
glob: examples/*/package.json
run: yarn prettier --write {staged_files}