Skip to content

Commit

Permalink
chore: correct husky install
Browse files Browse the repository at this point in the history
  • Loading branch information
Xstoudi committed Aug 7, 2023
1 parent edc02e7 commit 58afcd1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
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"

npx 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"

npm test
2 changes: 1 addition & 1 deletion package-lock.json

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

11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"prettier": "prettier --check \"src/**/*.{ts,tsx}\"",
"prettier:write": "prettier --write \"src/**/*.{ts,tsx}\"",
"check-types": "tsc --noEmit",
"test": "npm run eslint && npm run prettier && npm run check-types"
"test": "npm run eslint && npm run prettier && npm run check-types",
"prepare": "husky install"
},
"dependencies": {
"@dnd-kit/core": "^6.0.8",
Expand Down Expand Up @@ -62,17 +63,11 @@
"eslint": "^8.43.0",
"eslint-config-zakodium": "^7.2.0",
"execa": "^7.1.1",
"husky": "^8.0.3",
"husky": "^8.0.0",
"postcss": "^8.4.24",
"prettier": "2.8.8",
"tailwindcss": "^3.3.2",
"typescript": "^4.9.5",
"vite": "^4.2.1"
},
"husky": {
"hooks": {
"commit-msg": "npx commitlint --edit $1",
"pre-commit": "npm run test"
}
}
}

0 comments on commit 58afcd1

Please sign in to comment.