mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2024-11-14 19:35:05 -05:00
chore: add husky hook for commitlint
This commit is contained in:
parent
20bf634928
commit
cc4f0dbe37
4 changed files with 29 additions and 0 deletions
1
.husky/.gitattributes
vendored
Normal file
1
.husky/.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
* text eol=lf
|
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx --no-install commitlint --edit "$1"
|
22
package-lock.json
generated
22
package-lock.json
generated
|
@ -32,6 +32,7 @@
|
|||
"eslint": "8.55.0",
|
||||
"eslint-config-scratch": "9.0.3",
|
||||
"gh-pages": "1.2.0",
|
||||
"husky": "8.0.3",
|
||||
"jsdoc": "3.6.7",
|
||||
"json": "9.0.6",
|
||||
"playwright-chromium": "1.13.0",
|
||||
|
@ -7847,6 +7848,21 @@
|
|||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/husky": {
|
||||
"version": "8.0.3",
|
||||
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
|
||||
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"husky": "lib/bin.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/typicode"
|
||||
}
|
||||
},
|
||||
"node_modules/iconv-lite": {
|
||||
"version": "0.4.24",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
||||
|
@ -24983,6 +24999,12 @@
|
|||
"strip-url-auth": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"husky": {
|
||||
"version": "8.0.3",
|
||||
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
|
||||
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
|
||||
"dev": true
|
||||
},
|
||||
"iconv-lite": {
|
||||
"version": "0.4.24",
|
||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"build": "webpack --progress --colors",
|
||||
"docs": "jsdoc -c .jsdoc.json",
|
||||
"lint": "eslint .",
|
||||
"prepare": "husky install",
|
||||
"prepublish": "npm run build",
|
||||
"prepublish-watch": "npm run watch",
|
||||
"start": "webpack-dev-server",
|
||||
|
@ -36,6 +37,7 @@
|
|||
"eslint": "8.55.0",
|
||||
"eslint-config-scratch": "9.0.3",
|
||||
"gh-pages": "1.2.0",
|
||||
"husky": "8.0.3",
|
||||
"jsdoc": "3.6.7",
|
||||
"json": "9.0.6",
|
||||
"playwright-chromium": "1.13.0",
|
||||
|
|
Loading…
Reference in a new issue