Skip to content

Commit d76f265

Browse files
committed
chore: add husky commit-msg
1 parent 173a85d commit d76f265

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

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

commitlint.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
module.exports = {extends: ['@commitlint/config-conventional']};
1+
'use strict';
2+
3+
module.exports = { extends: ['@commitlint/config-conventional'] };

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"eslint-plugin-unicorn": "^37.0.0",
5656
"eslint-scope": "^6.0.0",
5757
"espree": "^9.0.0",
58+
"husky": "^7.0.2",
5859
"lodash": "^4.17.2",
5960
"markdownlint-cli": "^0.28.1",
6061
"mocha": "^9.1.2",

0 commit comments

Comments
 (0)