Skip to content

Commit db415ba

Browse files
committed
chore: add commitlint as precommit hook
1 parent 2a7b02a commit db415ba

File tree

5 files changed

+518
-18
lines changed

5 files changed

+518
-18
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ yarn-error.log*
3232

3333
# vercel
3434
.vercel
35+
36+
.eslintcache

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

commitlint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] }

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"react-dom": "17.0.2"
2626
},
2727
"devDependencies": {
28+
"@commitlint/cli": "12.1.1",
29+
"@commitlint/config-conventional": "12.1.1",
2830
"@tailwindcss/aspect-ratio": "0.2.0",
2931
"@tailwindcss/forms": "0.3.2",
3032
"@tailwindcss/line-clamp": "0.2.0",

0 commit comments

Comments
 (0)