Skip to content

Commit cc4f0db

Browse files
committed
chore: add husky hook for commitlint
1 parent 20bf634 commit cc4f0db

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

.husky/.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.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+
npx --no-install commitlint --edit "$1"

package-lock.json

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"build": "webpack --progress --colors",
1616
"docs": "jsdoc -c .jsdoc.json",
1717
"lint": "eslint .",
18+
"prepare": "husky install",
1819
"prepublish": "npm run build",
1920
"prepublish-watch": "npm run watch",
2021
"start": "webpack-dev-server",
@@ -36,6 +37,7 @@
3637
"eslint": "8.55.0",
3738
"eslint-config-scratch": "9.0.3",
3839
"gh-pages": "1.2.0",
40+
"husky": "8.0.3",
3941
"jsdoc": "3.6.7",
4042
"json": "9.0.6",
4143
"playwright-chromium": "1.13.0",

0 commit comments

Comments
 (0)