Skip to content

Commit 3f1b2c0

Browse files
authored
build(dev-deps): update husky and lint-staged (#666)
1 parent 45ccfcf commit 3f1b2c0

File tree

3 files changed

+176
-166
lines changed

3 files changed

+176
-166
lines changed

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx lint-staged

package.json

+3-8
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"lint": "npx tsc --noEmit && prettier . --check && npm run lint:eslint && npm run lint:markdown",
2828
"lint:fix": "prettier . --write && npm run lint:eslint --fix && npm run lint:markdown --fix",
2929
"pre-build": "npx tsx ./scripts/pre-build.ts",
30-
"prepare": "husky install"
30+
"prepare": "husky"
3131
},
3232
"dependencies": {
3333
"@docusaurus/core": "3.6.1",
@@ -80,13 +80,13 @@
8080
"gray-matter": "^4.0.3",
8181
"gunzip-maybe": "^1.4.2",
8282
"hast-util-from-html": "^2.0.1",
83-
"husky": "^8.0.0",
83+
"husky": "^9.1.6",
8484
"image-minimizer-webpack-plugin": "^4.0.2",
8585
"imagemin": "^9.0.0",
8686
"imagemin-pngquant": "^10.0.0",
8787
"json5": "^2.2.2",
8888
"latest-version": "^5.1.0",
89-
"lint-staged": "^13.2.0",
89+
"lint-staged": "^15.2.10",
9090
"markdownlint-cli2": "^0.13.0",
9191
"mdast-util-from-markdown": "^2.0.1",
9292
"mdast-util-frontmatter": "^2.0.1",
@@ -119,11 +119,6 @@
119119
"eslint --fix"
120120
]
121121
},
122-
"husky": {
123-
"hooks": {
124-
"pre-commit": "lint-staged"
125-
}
126-
},
127122
"resolutions": {
128123
"http-cache-semantics": "4.1.1",
129124
"markdownlint-cli2/micromatch": "4.0.8"

0 commit comments

Comments
 (0)