Skip to content

Commit

Permalink
Migrate from Husky 4 to Husky 5
Browse files Browse the repository at this point in the history
First, I used this tool:

https://github.com/typicode/husky-4-to-5

Then, per documentation at https://typicode.github.io/husky/
I moved pre-commit hooks from package.json into .husky/pre-commit

The command `lint-staged` by itself didn't work, it needs to be
prefixed with `npx`.
  • Loading branch information
zcorpan committed Feb 16, 2021
1 parent 5113870 commit f71ca8b
Show file tree
Hide file tree
Showing 4 changed files with 8,844 additions and 83 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
Loading

0 comments on commit f71ca8b

Please sign in to comment.