Skip to content

Commit

Permalink
chore(monorepo): setup husky
Browse files Browse the repository at this point in the history
  • Loading branch information
muravjev committed Oct 29, 2022
1 parent 52dc62b commit 8cf5e9c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint-staged --quiet
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lint:fix": "pnpm lint --fix",
"remark": "remark",
"remark:fix": "pnpm remark --output --",
"commitlint": "commitlint"
"commitlint": "commitlint",
"prepare": "husky install"
},
"engines": {
"node": ">=14.16.0",
Expand All @@ -31,6 +32,7 @@
"@muravjev/configs-prettier": "^0.1.3",
"@muravjev/configs-remark": "^0.1.3",
"eslint": "^8.26.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"remark": "^14.0.2",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 8cf5e9c

Please sign in to comment.