Skip to content

Commit 32257a8

Browse files
committed
feat: commitlint setting (#24)
1 parent 90d69ef commit 32257a8

File tree

4 files changed

+581
-19
lines changed

4 files changed

+581
-19
lines changed

.commitlintrc.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Commit Rules
2+
module.exports = {
3+
$schema: 'https://json.schemastore.org/commitlintrc.json',
4+
extends: ['@commitlint/config-conventional'],
5+
};
6+
// ex) feat: add new feature (#13)
7+
// ex) fix: fix Button styles (#15)
8+
// ex) docs: add new docs (#13) (#14)
9+
// ex) refactor: refactor Checkbox border (#11)

.husky/commit-msg

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

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
},
2727
"devDependencies": {
2828
"@babel/core": "^7.19.1",
29+
"@commitlint/cli": "^17.1.2",
30+
"@commitlint/config-conventional": "^17.1.0",
2931
"@emotion/babel-plugin": "^11.10.2",
3032
"@emotion/react": "^11.10.4",
3133
"@emotion/styled": "^11.10.4",

0 commit comments

Comments
 (0)