Skip to content

Commit

Permalink
update to husky v9
Browse files Browse the repository at this point in the history
  • Loading branch information
timlrx committed Mar 31, 2024
1 parent a4a7bb0 commit b03b997
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
5 changes: 3 additions & 2 deletions layouts/PostLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ export default function PostLayout({ content, authorDetails, next, prev, childre
href={author.twitter}
className="text-primary-500 hover:text-primary-600 dark:hover:text-primary-400"
>
{author.twitter.replace('https://twitter.com/', '@')
.replace('https://x.com/', '@')}
{author.twitter
.replace('https://twitter.com/', '@')
.replace('https://x.com/', '@')}
</Link>
)}
</dd>
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "cross-env INIT_CWD=$PWD next build && cross-env NODE_OPTIONS='--experimental-json-modules' node ./scripts/postbuild.mjs",
"serve": "next start",
"analyze": "cross-env ANALYZE=true next build",
"lint": "next lint --fix --dir pages --dir app --dir components --dir lib --dir layouts --dir scripts"
"lint": "next lint --fix --dir pages --dir app --dir components --dir lib --dir layouts --dir scripts",
"prepare": "husky"
},
"dependencies": {
"@next/bundle-analyzer": "14.1.4",
Expand Down Expand Up @@ -51,7 +52,7 @@
"eslint-config-next": "14.1.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.0",
"husky": "^9.0.0",
"lint-staged": "^13.0.0",
"prettier": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.5.11",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6442,12 +6442,12 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^8.0.0":
version: 8.0.3
resolution: "husky@npm:8.0.3"
"husky@npm:^9.0.0":
version: 9.0.11
resolution: "husky@npm:9.0.11"
bin:
husky: lib/bin.js
checksum: 837bc7e4413e58c1f2946d38fb050f5d7324c6f16b0fd66411ffce5703b294bd21429e8ba58711cd331951ee86ed529c5be4f76805959ff668a337dbfa82a1b0
husky: bin.mjs
checksum: 1aebc3334dc7ac6288ff5e1fb72cfb447cfa474e72cf7ba692e8c5698c573ab725c28c6a5088c9f8e6aca5f47d40fa7261beffbc07a4d307ca21656dc4571f07
languageName: node
linkType: hard

Expand Down Expand Up @@ -10750,7 +10750,7 @@ __metadata:
eslint-plugin-prettier: ^5.0.0
github-slugger: ^2.0.0
gray-matter: ^4.0.2
husky: ^8.0.0
husky: ^9.0.0
image-size: 1.0.0
lint-staged: ^13.0.0
next: 14.1.4
Expand Down

0 comments on commit b03b997

Please sign in to comment.