Skip to content

Commit 346db12

Browse files
committedMar 8, 2019
Switch from pre-commit to husky.
1 parent ec65ff2 commit 346db12

File tree

3 files changed

+212
-95
lines changed

3 files changed

+212
-95
lines changed
 

‎.huskyrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "npm run lint && npm run test"
4+
}
5+
}

‎package-lock.json

+205-89
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
"test": "jest",
99
"ci": "npm run lint && npm run test -- --coverage"
1010
},
11-
"pre-commit": [
12-
"lint",
13-
"test"
14-
],
1511
"repository": {
1612
"type": "git",
1713
"url": "git+https://github.com/trekhleb/javascript-algorithms.git"
@@ -46,8 +42,8 @@
4642
"eslint-plugin-jest": "^22.3.0",
4743
"eslint-plugin-jsx-a11y": "^6.2.1",
4844
"eslint-plugin-react": "^7.12.4",
49-
"jest": "^24.3.1",
50-
"pre-commit": "^1.2.2"
45+
"husky": "^1.3.1",
46+
"jest": "^24.3.1"
5147
},
5248
"dependencies": {}
5349
}

0 commit comments

Comments
 (0)
Please sign in to comment.