Skip to content

Commit d71e5ec

Browse files
committed
chore: add husky
1 parent f479288 commit d71e5ec

File tree

4 files changed

+20
-170
lines changed

4 files changed

+20
-170
lines changed

.github/workflows/lint-schemas.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Lint schemas
22

3-
on: pull_request
3+
on:
4+
- pull_request
5+
- push
46

57
jobs:
68
lint:
@@ -15,5 +17,7 @@ jobs:
1517

1618
- name: Set up pnpm
1719
uses: pnpm/action-setup@v3
20+
with:
21+
version: 8
1822

1923
- run: pnpm lint

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm test

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
"name": "lists",
33
"version": "1.0.0",
44
"description": "",
5-
"main": "index.js",
65
"scripts": {
7-
"test": "npx ajv-cli validate -s address.darklist.schema.json -d address.darklist.json"
6+
"test": "npx ajv-cli validate -s address.darklist.schema.json -d address.darklist.json",
7+
"prepare": "husky"
88
},
99
"keywords": [],
1010
"author": "",
11-
"license": "ISC"
11+
"license": "ISC",
12+
"devDependencies": {
13+
"husky": "^9.0.11"
14+
}
1215
}

pnpm-lock.yaml

Lines changed: 8 additions & 166 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)