Skip to content

Commit b35e156

Browse files
committed
feat: add commitlint
1 parent a26e933 commit b35e156

File tree

5 files changed

+465
-10
lines changed

5 files changed

+465
-10
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional']
3+
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
"@4c/rollout": "^1.4.0",
7777
"@babel/cli": "^7.1.0",
7878
"@babel/core": "^7.1.5",
79+
"@commitlint/cli": "^12.1.4",
80+
"@commitlint/config-conventional": "^12.1.4",
7981
"@storybook/addon-actions": "^6.1.15",
8082
"@storybook/react": "^6.1.15",
8183
"autoprefixer": "^9.5.1",

0 commit comments

Comments
 (0)