Skip to content

Commit 7053709

Browse files
committed
Change Husky config.
1 parent 0fc9a29 commit 7053709

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
$(npm bin)/pretty-quick --staged && $(npm bin)/lint-staged

.husky/pre-push

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

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,14 @@
1111
"lint": "eslint 'src/**'",
1212
"format": "pretty-quick",
1313
"test": "jest --coverage",
14-
"test:watch": "jest --watch"
14+
"test:watch": "jest --watch",
15+
"prepare": "husky install"
1516
},
1617
"author": {
1718
"name": "Adobe Systems",
1819
"url": "http://adobe.com",
1920
"email": "[email protected]"
2021
},
21-
"husky": {
22-
"hooks": {
23-
"pre-commit": "pretty-quick --staged && lint-staged",
24-
"pre-push": "npm test"
25-
}
26-
},
2722
"lint-staged": {
2823
"*.js": [
2924
"npm run lint -- --fix"

0 commit comments

Comments
 (0)