chore: add husky hook for commitlint

This commit is contained in:
Christopher Willis-Ford committed 2022-06-07 11:44:05 -07:00
1 parent dfd70e06c7
commit bb47165dfd
4 files changed
+29

No files matched your search

+1
View File
@@ -0,0 +1 @@
* text eol=lf
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no-install commitlint --edit $1
+22
View File
@@ -44,6 +44,7 @@
"file-loader": "2.0.0",
"format-message-cli": "6.2.0",
"gh-pages": "1.2.0",
"husky": "8.0.1",
"in-publish": "2.0.1",
"js-md5": "0.7.3",
"jsdoc": "3.6.6",
@@ -13957,6 +13958,21 @@
"node": ">=0.10.0"
}
},
"node_modules/husky": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.1.tgz",
"integrity": "sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==",
"dev": true,
"bin": {
"husky": "lib/bin.js"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/iconv-lite": {
"version": "0.4.19",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz",
@@ -37522,6 +37538,12 @@
"strip-url-auth": "^1.0.0"
}
},
"husky": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.1.tgz",
"integrity": "sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==",
"dev": true
},
"iconv-lite": {
"version": "0.4.19",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz",
+2
View File
@@ -19,6 +19,7 @@
"i18n:src": "mkdirp translations/core && format-message extract --out-file translations/core/en.json src/extensions/**/index.js",
"i18n:push": "tx-push-src scratch-editor extensions translations/core/en.json",
"lint": "eslint . && format-message lint src/**/*.js",
"prepare": "husky install",
"prepublish": "in-publish && npm run build || not-in-publish",
"start": "webpack-dev-server",
"tap": "tap ./test/{unit,integration}/*.js",
@@ -67,6 +68,7 @@
"file-loader": "2.0.0",
"format-message-cli": "6.2.0",
"gh-pages": "1.2.0",
"husky": "8.0.1",
"in-publish": "2.0.1",
"js-md5": "0.7.3",
"jsdoc": "3.6.6",