Skip to content

Commit

Permalink
chore: add husky
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Apr 2, 2024
1 parent f479288 commit 13f3c31
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 169 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lint-schemas.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Lint schemas

on: pull_request
on:
- pull_request
- push

jobs:
lint:
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm test
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "npx ajv-cli validate -s address.darklist.schema.json -d address.darklist.json"
"test": "npx ajv-cli validate -s address.darklist.schema.json -d address.darklist.json",
"prepare": "husky"
},
"keywords": [],
"author": "",
"license": "ISC"
"license": "ISC",
"devDependencies": {
"husky": "^9.0.11"
}
}
174 changes: 8 additions & 166 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 13f3c31

Please sign in to comment.