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 1, 2021
1 parent 65be060 commit 76df9bd
Show file tree
Hide file tree
Showing 4 changed files with 1,151 additions and 8 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 76df9bd

Please sign in to comment.