mirror of
https://github.com/scratchfoundation/scratch-link.git
synced 2025-06-14 14:21:09 -04:00
chore: add husky hook for commitlint
This commit is contained in:
parent
9a34e84a2a
commit
4849c504fe
4 changed files with 23 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"
|
16
package-lock.json
generated
16
package-lock.json
generated
|
@ -16,6 +16,7 @@
|
|||
"@semantic-release/git": "10.0.1",
|
||||
"@semantic-release/github": "8.0.7",
|
||||
"@semantic-release/release-notes-generator": "10.0.3",
|
||||
"husky": "8.0.3",
|
||||
"scratch-vm": "1.5.27",
|
||||
"semantic-release": "21.0.1"
|
||||
}
|
||||
|
@ -5152,6 +5153,21 @@
|
|||
"node": ">=14.18.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/ieee754": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"author": "Scratch Foundation",
|
||||
"license": "BSD-3-Clause",
|
||||
"scripts": {
|
||||
"prepare": "husky install",
|
||||
"semantic-release": "semantic-release"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -15,6 +16,7 @@
|
|||
"@semantic-release/git": "10.0.1",
|
||||
"@semantic-release/github": "8.0.7",
|
||||
"@semantic-release/release-notes-generator": "10.0.3",
|
||||
"husky": "8.0.3",
|
||||
"scratch-vm": "1.5.27",
|
||||
"semantic-release": "21.0.1"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue