-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
35 lines (35 loc) · 1.01 KB
/
.pre-commit-hooks.yaml
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
- id: npm_audit
name: npm_audit
entry: bash
language: node
pass_filenames: false
files: "^(package-lock.lock|package.json)$"
args: ["-c", "npm audit || (sleep 60 && npm audit)"]
- id: yarn_audit
name: yarn_audit
entry: bash
language: node
pass_filenames: false
files: "^(yarn.lock|package.json)$"
args: ["-c", "yarn audit || (sleep 60 && yarn audit)"]
- id: yarn_audit_only_dependencies
name: yarn audit --groups dependencies
entry: bash
language: node
pass_filenames: false
files: "^(yarn.lock|package.json)$"
args: ["-c", "yarn audit --groups dependencies || (sleep 60 && yarn audit --groups dependencies)"]
- id: threekit_package_json
name: threekit_package_json
entry: "check_package_json"
language: node
pass_filenames: false
files: "^(yarn.lock|package.json)$"
args: ["service"]
- id: threekit_module_package_json
name: threekit_module_package_json
entry: "check_package_json"
language: node
pass_filenames: false
files: "^(yarn.lock|package.json)$"
args: ["module"]