Skip to content

Commit 7f9afe2

Browse files
committed
feat: add commitlint to check commit messages
1 parent 860b62b commit 7f9afe2

File tree

5 files changed

+1029
-0
lines changed

5 files changed

+1029
-0
lines changed

.commitlintrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
]
5+
}

.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 -- commitlint --edit

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.words": [
3+
"commitlint",
34
"esbuild",
45
"Lich",
56
"Parens",

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
"author": "",
1818
"license": "ISC",
1919
"devDependencies": {
20+
"@commitlint/cli": "^16.0.2",
21+
"@commitlint/config-conventional": "^16.0.0",
22+
"@types/node": "^17.0.8",
2023
"@typescript-eslint/eslint-plugin": "^5.9.1",
2124
"@typescript-eslint/parser": "^5.9.1",
2225
"@vitest/ui": "^0.1.12",

0 commit comments

Comments
 (0)