Skip to content

Commit

Permalink
build: use husky pre-commit hook (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Jul 2, 2024
1 parent 13ab5b0 commit 6d4378d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run fix
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![npm version](https://img.shields.io/npm/v/linkinator)](https://www.npmjs.org/package/linkinator)
[![codecov](https://img.shields.io/codecov/c/github/JustinBeckwith/linkinator/main)](https://app.codecov.io/gh/JustinBeckwith/linkinator)
[![XO code style](https://shields.io/badge/code_style-5ed9c7?logo=xo&labelColor=gray)](https://github.com/xojs/xo)
[![Checked with Biome](https://img.shields.io/badge/Checked_with-Biome-60a5fa?style=flat&logo=biome)](https://biomejs.dev)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079)](https://github.com/semantic-release/semantic-release)


Expand Down
16 changes: 16 additions & 0 deletions package-lock.json

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

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"scripts": {
"pretest": "npm run build",
"prepare": "npm run build",
"prepare": "husky && npm run build",
"coverage": "c8 report --reporter=json",
"build": "tsc -p .",
"test": "c8 mocha build/test",
Expand Down Expand Up @@ -43,6 +43,7 @@
"@types/sinon": "^17.0.0",
"c8": "^10.0.0",
"execa": "^9.0.0",
"husky": "^9.0.11",
"mocha": "^10.0.0",
"nock": "^13.2.1",
"pkg": "^5.4.1",
Expand All @@ -54,7 +55,9 @@
"engines": {
"node": ">=18"
},
"files": ["build/src"],
"files": [
"build/src"
],
"keywords": [
"404",
"html",
Expand Down

0 comments on commit 6d4378d

Please sign in to comment.