Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 144b686

Browse files
committed
Testing Husky integration
1 parent cfd9a63 commit 144b686

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.husky/pre-commit

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
# @TODO: Implement the pre-commit checks.
5-
# npm run lint
6-
# npm run test
4+
npm run lint
5+
npm run test

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=false

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,8 @@
4848
"husky": "6.0.0",
4949
"jest": "26.6.3"
5050
},
51-
"dependencies": {}
51+
"engines": {
52+
"node": ">=12.0.0",
53+
"npm": ">=6.9.0"
54+
}
5255
}

0 commit comments

Comments
 (0)