Skip to content

Commit b03b997

Browse files
committed
update to husky v9
1 parent a4a7bb0 commit b03b997

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
npx --no-install lint-staged

layouts/PostLayout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ export default function PostLayout({ content, authorDetails, next, prev, childre
8181
href={author.twitter}
8282
className="text-primary-500 hover:text-primary-600 dark:hover:text-primary-400"
8383
>
84-
{author.twitter.replace('https://twitter.com/', '@')
85-
.replace('https://x.com/', '@')}
84+
{author.twitter
85+
.replace('https://twitter.com/', '@')
86+
.replace('https://x.com/', '@')}
8687
</Link>
8788
)}
8889
</dd>

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "cross-env INIT_CWD=$PWD next build && cross-env NODE_OPTIONS='--experimental-json-modules' node ./scripts/postbuild.mjs",
99
"serve": "next start",
1010
"analyze": "cross-env ANALYZE=true next build",
11-
"lint": "next lint --fix --dir pages --dir app --dir components --dir lib --dir layouts --dir scripts"
11+
"lint": "next lint --fix --dir pages --dir app --dir components --dir lib --dir layouts --dir scripts",
12+
"prepare": "husky"
1213
},
1314
"dependencies": {
1415
"@next/bundle-analyzer": "14.1.4",
@@ -51,7 +52,7 @@
5152
"eslint-config-next": "14.1.0",
5253
"eslint-config-prettier": "^8.8.0",
5354
"eslint-plugin-prettier": "^5.0.0",
54-
"husky": "^8.0.0",
55+
"husky": "^9.0.0",
5556
"lint-staged": "^13.0.0",
5657
"prettier": "^3.0.0",
5758
"prettier-plugin-tailwindcss": "^0.5.11",

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6442,12 +6442,12 @@ __metadata:
64426442
languageName: node
64436443
linkType: hard
64446444

6445-
"husky@npm:^8.0.0":
6446-
version: 8.0.3
6447-
resolution: "husky@npm:8.0.3"
6445+
"husky@npm:^9.0.0":
6446+
version: 9.0.11
6447+
resolution: "husky@npm:9.0.11"
64486448
bin:
6449-
husky: lib/bin.js
6450-
checksum: 837bc7e4413e58c1f2946d38fb050f5d7324c6f16b0fd66411ffce5703b294bd21429e8ba58711cd331951ee86ed529c5be4f76805959ff668a337dbfa82a1b0
6449+
husky: bin.mjs
6450+
checksum: 1aebc3334dc7ac6288ff5e1fb72cfb447cfa474e72cf7ba692e8c5698c573ab725c28c6a5088c9f8e6aca5f47d40fa7261beffbc07a4d307ca21656dc4571f07
64516451
languageName: node
64526452
linkType: hard
64536453

@@ -10750,7 +10750,7 @@ __metadata:
1075010750
eslint-plugin-prettier: ^5.0.0
1075110751
github-slugger: ^2.0.0
1075210752
gray-matter: ^4.0.2
10753-
husky: ^8.0.0
10753+
husky: ^9.0.0
1075410754
image-size: 1.0.0
1075510755
lint-staged: ^13.0.0
1075610756
next: 14.1.4

0 commit comments

Comments
 (0)