Merge pull request #28 from DoctorDerek/update-husky-to-v6-round-3

Update husky to v6
This commit is contained in:
Timothy authored and GitHub committed 2021-04-20 23:15:36 +08:00
commit 582800c156
4 files changed
+9308 -22

No files matched your search

+1
View File
@@ -0,0 +1 @@
_
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install lint-staged
+9301 -16
View File
File diff suppressed because it is too large. Load diff
+2 -6
View File
@@ -7,7 +7,8 @@
"dev": "next dev",
"build": "next build && node ./scripts/generate-sitemap",
"serve": "next start",
"analyze": "env ANALYZE=true next build"
"analyze": "env ANALYZE=true next build",
"prepare": "husky install"
},
"dependencies": {
"@mapbox/rehype-prism": "^0.5.0",
@@ -60,11 +61,6 @@
"unified": "9.2.1",
"unist-util-visit": "2.0.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.+(js|jsx|ts|tsx)": [
"eslint --fix"