Browse Source

Fix Git hooks

main
Dan Abramov 2 years ago
parent
commit
a77fa5589c
  1. 1
      .husky/pre-commit
  2. 2
      package.json

1
.husky/pre-commit

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

2
package.json

@ -18,7 +18,7 @@
"ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids", "ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids",
"tsc": "tsc --noEmit", "tsc": "tsc --noEmit",
"start": "next start", "start": "next start",
"postinstall": "patch-package && (is-ci || (cd .. && husky install .husky))", "postinstall": "patch-package && (is-ci || husky install .husky)",
"check-all": "npm-run-all prettier lint:fix tsc" "check-all": "npm-run-all prettier lint:fix tsc"
}, },
"dependencies": { "dependencies": {

Loading…
Cancel
Save