-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlefthook.yml
More file actions
32 lines (28 loc) · 1.03 KB
/
lefthook.yml
File metadata and controls
32 lines (28 loc) · 1.03 KB
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
ci-hook:
parallel: true
commands:
test:
run: yarn test # Keep this for your React Native tests
# Temporarily remove the audit command, we will add it back later once stable
# audit:
# run: yarn audit --json --depth=0 || true # Avoid crashing on audit failure
pre-push:
parallel: false # Run in sequence to prevent conflicts
commands:
# Temporarily remove the audit command, as it could be crashing your setup
# packages-audit:
# tags: frontend security
# run: yarn audit --json --depth=0 || true
pre-commit:
parallel: true # Run commands in parallel to save time
commands:
secret_scan:
run: node scripts/secret-scan-staged.cjs
eslint:
glob: "*.{js,ts,jsx,tsx}"
run: node scripts/eslint-staged.cjs {staged_files}
# Remove non-React Native commands such as Ruby and Go for now
# You can reintroduce these if needed, but it's unlikely you need them for React Native
scripts:
"hello.js":
runner: node # Keep the Node.js script for potential utility needs