Skip to content

Commit 6d4378d

Browse files
build: use husky pre-commit hook (#614)
1 parent 13ab5b0 commit 6d4378d

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run fix

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
[![npm version](https://img.shields.io/npm/v/linkinator)](https://www.npmjs.org/package/linkinator)
66
[![codecov](https://img.shields.io/codecov/c/github/JustinBeckwith/linkinator/main)](https://app.codecov.io/gh/JustinBeckwith/linkinator)
7-
[![XO code style](https://shields.io/badge/code_style-5ed9c7?logo=xo&labelColor=gray)](https://github.com/xojs/xo)
7+
[![Checked with Biome](https://img.shields.io/badge/Checked_with-Biome-60a5fa?style=flat&logo=biome)](https://biomejs.dev)
88
[![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)
99

1010

package-lock.json

+16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"scripts": {
1515
"pretest": "npm run build",
16-
"prepare": "npm run build",
16+
"prepare": "husky && npm run build",
1717
"coverage": "c8 report --reporter=json",
1818
"build": "tsc -p .",
1919
"test": "c8 mocha build/test",
@@ -43,6 +43,7 @@
4343
"@types/sinon": "^17.0.0",
4444
"c8": "^10.0.0",
4545
"execa": "^9.0.0",
46+
"husky": "^9.0.11",
4647
"mocha": "^10.0.0",
4748
"nock": "^13.2.1",
4849
"pkg": "^5.4.1",
@@ -54,7 +55,9 @@
5455
"engines": {
5556
"node": ">=18"
5657
},
57-
"files": ["build/src"],
58+
"files": [
59+
"build/src"
60+
],
5861
"keywords": [
5962
"404",
6063
"html",

0 commit comments

Comments
 (0)