Skip to content

Commit

Permalink
Migrate Husky from v4 to v5
Browse files Browse the repository at this point in the history
https://typicode.github.io/husky/#/?id=migrate-from-v4-to-v5

Additional changes:

- Use prepare script instead of postinstall:
  typicode/husky#890
- Remove old package.json > husky field
- Add `lint-staged` to package scripts & prefix `pre-commit` with npx
  typicode/husky#866 (comment)

Signed-off-by: Roger Sheen <roger@infotexture.net>
  • Loading branch information
infotexture committed Mar 4, 2021
1 parent 4a56c16 commit 942f159
Show file tree
Hide file tree
Showing 4 changed files with 22,048 additions and 32 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged

0 comments on commit 942f159

Please sign in to comment.