Skip to content

Commit

Permalink
feat(package.json): add husky pre-commit task to keep the code style …
Browse files Browse the repository at this point in the history
…consistent
  • Loading branch information
zakwu committed Apr 29, 2020
1 parent 27687a7 commit c3dc1cb
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "npm run lint",
}
}
242 changes: 242 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"estraverse": "4.1.1",
"fs-extra": "0.26.7",
"glob": "7.0.0",
"husky": "^4.2.5",
"jest": "^24.9.0",
"jest-canvas-mock": "^2.2.0",
"jsdom": "^15.2.1",
Expand Down

0 comments on commit c3dc1cb

Please sign in to comment.