Skip to content

Commit

Permalink
build: Add husky for the pre-commit hook
Browse files Browse the repository at this point in the history
The pre-commit-hook should run lint-staged every time someone wants to
commit a file to the project.
  • Loading branch information
Roman Seidelsohn committed Jan 21, 2023
1 parent e2a740d commit fcc3393
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
22 changes: 22 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"prettier": "npx prettier lib --check && npx prettier bin/license-checker-rseidelsohn --check && npx prettier scripts --check",
"prettier:fix": "npm run prettier -- --write",
"format": "npm run prettier:fix && npm run lint:fix",
"format:dry": "npm run prettier && npm run lint"
"format:dry": "npm run prettier && npm run lint",
"prepare": "husky install"
},
"preferGlobal": true,
"bugs": {
Expand Down Expand Up @@ -140,6 +141,7 @@
"format-package-json": "^0.2.0",
"git-contributors": "^0.2.5",
"github-changes": "^2.0.3",
"husky": "^8.0.0",
"istanbul": "^0.4.5",
"jenkins-mocha": "^8.0.0",
"lint-staged": "^13.1.0",
Expand Down

0 comments on commit fcc3393

Please sign in to comment.