Skip to content

Commit 6d372a5

Browse files
author
Tuan
committed
config husky
1 parent 2a43e1c commit 6d372a5

File tree

3 files changed

+3611
-3590
lines changed

3 files changed

+3611
-3590
lines changed

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn lint-staged

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.2",
44
"scripts": {
55
"preinstall": "node install-chilkat.js",
6+
"postinstall": "husky install",
67
"new-stack": "pulumi stack init --secrets-provider=passphrase",
78
"up": "pulumi up --yes --skip-preview",
89
"reup": "pulumi up --refresh --yes --skip-preview",
@@ -59,10 +60,8 @@
5960
}
6061
},
6162
"lint-staged": {
62-
"**/*.ts": [
63-
"eslint --fix",
64-
"git add"
63+
"**/*.{js,ts}": [
64+
"eslint --fix"
6565
]
6666
}
6767
}
68-

0 commit comments

Comments
 (0)