Skip to content

Commit 1e2e50c

Browse files
author
Ehsan-MSI\Ehsan
committed
ci: add commitlint hook
1 parent cbe579a commit 1e2e50c

File tree

4 files changed

+644
-30
lines changed

4 files changed

+644
-30
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
pnpm commitlint --edit ${1}

commitlint.config.cjs

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

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
"@babel/preset-env": "^7.20.2",
4646
"@babel/preset-react": "^7.18.6",
4747
"@babel/preset-typescript": "^7.21.0",
48+
"@commitlint/cli": "^17.5.1",
49+
"@commitlint/config-conventional": "^17.4.4",
4850
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
4951
"@storybook/addon-essentials": "^7.0.0-rc.10",
5052
"@storybook/addon-interactions": "^7.0.0-rc.10",

0 commit comments

Comments
 (0)