This website requires JavaScript.
Explore
Help
Sign In
zio
/
bsky-app
Watch
2
Star
0
Fork
You've already forked bsky-app
0
Code
Pull Requests
Packages
Releases
Activity
da4dfeb9cf
bsky-app
/
.husky
/
pre-commit
5 lines
69 B
Plaintext
Raw
Normal View
History
Unescape
Escape
set up lint-staged via husky (cherry picked from commit 98151fafbd9b248fce62f013cecd3d20d4d17006)
2023-07-14 00:35:05 +02:00
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
Make `lint-staged` work in more envs (#4532) When setting up the environment on a Windows machine with Git Bash, the pre-commit hook errored out: > /usr/bin/bash: line 1: C:UsersNameFoldersocial-appnode_modules.binlint-staged: command not found Seemingly, `yarn lint-staged` is not able to correctly resolve the path. This commit changes the pre-commit hook to use `npx` instead of `yarn`, for 2 reasons: 1. It works on my machine (and is supposedly a more universal solution) 2. It is how it is done in the documentation: https://github.com/lint-staged/lint-staged?tab=readme-ov-file#examples Co-authored-by: Joel <joel.garplind+github@gmail.com>
2024-06-16 12:42:15 +02:00
npx lint-staged