Skip to content

Commit

Permalink
chore: commitlint 설치, commit-msg 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
1two13 committed Jun 23, 2023
1 parent 2365359 commit 811d98b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .husky/commit-msg
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
npx --no-install commitlint --edit "$1"
27 changes: 27 additions & 0 deletions package-lock.json

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

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"devDependencies": {
"@commitlint/cli": "^17.6.5",
"@commitlint/config-conventional": "^17.6.5",
"commitlint": "^17.6.5",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"husky": "^8.0.3",
Expand All @@ -54,5 +55,10 @@
"./src/**/*.{js,jsx,ts,tsx}": [
"npm run lint -- --fix"
]
},
"husky": {
"hooks": {
"commit-msg": "bash commit-msg"
}
}
}

0 comments on commit 811d98b

Please sign in to comment.