Skip to content

Commit 25e1706

Browse files
authored
chore: add husky for local commit linting (#28)
Adds package.json with husky and commitlint dependencies to enable local commit message validation before push.
1 parent 70cba7e commit 25e1706

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "vs-openinnotepadplusplus",
3+
"version": "0.0.0",
4+
"private": true,
5+
"description": "Development dependencies for VS-OpenInNotepadPlusPlus - conventional commits tooling",
6+
"scripts": {
7+
"prepare": "husky"
8+
},
9+
"devDependencies": {
10+
"@commitlint/cli": "^19.0.0",
11+
"@commitlint/config-conventional": "^19.0.0",
12+
"husky": "^9.0.0"
13+
}
14+
}

0 commit comments

Comments
 (0)