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 cba0e1f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 170 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
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
"name": "lists",
"version": "1.0.0",
"description": "",
"main": "index.js",
"packageManager": "^[email protected]",
"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 cba0e1f

Please sign in to comment.