forked from mym0404/react-native-naver-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lefthook.yml
49 lines (45 loc) · 1.14 KB
/
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
40
41
42
43
44
45
46
47
48
49
pre-commit:
parallel: true
commands:
lint:js:
glob: "*.{js,ts,jsx,tsx}"
run: yarn eslint --cache --max-warnings=0 {staged_files}
lint:objc:
glob: "*.{h,mm,m,hpp,cpp,c}"
run: bash ./script/clang-lint.sh {staged_files}
lint:kotlin:
glob: "*.kt"
run: bash ./script/ktlint-lint.sh {staged_files}
typecheck:
glob: "*.{ts,tsx}"
run: yarn tsc --noEmit
format:
parallel: true
commands:
format:objc:
glob: "*.{h,mm,m,hpp,cpp,c}"
run: bash ./script/clang-format.sh {all_files}
format:kotlin:
glob: "*.kt"
run: bash ./script/ktlint-format.sh {all_files}
check:
parallel: true
commands:
lint:js:
glob: "*.{js,ts,jsx,tsx}"
run: yarn eslint --cache --max-warnings=0 {all_files}
lint:objc:
glob: "*.{h,mm,m,hpp,cpp,c}"
run: bash ./script/clang-lint.sh {all_files}
lint:kotlin:
glob: "*.kt"
run: bash ./script/ktlint-lint.sh {all_files}
typecheck:
glob: "*.{ts,tsx}"
run: yarn tsc --noEmit
build:
run: yarn prepack
commit-msg:
commands:
commitlint:
run: npx --no-install commitlint --edit