mirror of
https://github.com/scratchfoundation/scratch-render-fonts.git
synced 2025-06-15 06:41:19 -04:00
chore: add husky hook for commitlint
This commit is contained in:
parent
2239ce38b8
commit
65b8fc329d
4 changed files with 28 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
|
@ -19,6 +19,7 @@
|
|||
"babel-preset-env": "1.7.0",
|
||||
"eslint": "^4.14.0",
|
||||
"eslint-config-scratch": "^5.0.0",
|
||||
"husky": "8.0.3",
|
||||
"json": "^10.0.0",
|
||||
"lodash.defaultsdeep": "4.6.1",
|
||||
"rimraf": "^2.6.1",
|
||||
|
@ -5266,6 +5267,21 @@
|
|||
"node": ">=10.17.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",
|
||||
|
@ -14987,6 +15003,12 @@
|
|||
"integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
|
||||
"dev": true
|
||||
},
|
||||
"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",
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
"babel-preset-env": "1.7.0",
|
||||
"eslint": "^4.14.0",
|
||||
"eslint-config-scratch": "^5.0.0",
|
||||
"husky": "8.0.3",
|
||||
"json": "^10.0.0",
|
||||
"lodash.defaultsdeep": "4.6.1",
|
||||
"rimraf": "^2.6.1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue