Auto convert with manual update of pre-commit to npx lint-staged

This commit is contained in:
Dr. Derek Austin 2021-04-16 17:26:41 -05:00
parent aecee3d5fd
commit 98c89b8bdd
4 changed files with 9308 additions and 22 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

4
.husky/pre-commit Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged

9317
package-lock.json generated

File diff suppressed because it is too large Load Diff

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"