Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Workaround of a mysterious bug in either lint-staged or husky.
# https://github.com/typicode/husky/issues/1134
# https://github.com/okonet/lint-staged/issues/693#issuecomment-1079759224
FORCE_COLOR=1 yarn lint-staged --allow-empty
yarn lint-staged
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"canary:publish": "yarn lerna publish from-package --dist-tag canary --yes --no-verify-access --loglevel verbose",
"changelog": "lerna-changelog",
"postinstall": "patch-package && yarn lock:update && yarn build:packages",
"prepare": "husky install",
"prepare": "husky",
"format": "oxfmt .",
"format:diff": "oxfmt --list-different .",
"lint": "yarn lint:js && yarn lint:style && yarn lint:spelling && yarn lint:syncpack",
Expand Down Expand Up @@ -115,7 +115,7 @@
"jest-serializer-react-helmet-async": "^1.0.21",
"lerna": "^7.4.2",
"lerna-changelog": "^2.2.0",
"lint-staged": "^16.4.0",
"lint-staged": "^17.0.2",
"lockfile-lint": "^5.0.0",
"npm-run-all": "^4.1.5",
"patch-package": "^8.0.1",
Expand Down
Loading
Loading