mirror of
https://github.com/scratchfoundation/scratch-svg-renderer.git
synced 2024-11-14 19:25:41 -05:00
chore: add husky hook for commitlint
This commit is contained in:
parent
c39080afdc
commit
a4f2e3c699
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
|
@ -28,6 +28,7 @@
|
|||
"eslint": "8.55.0",
|
||||
"eslint-config-scratch": "9.0.3",
|
||||
"eslint-plugin-import": "2.29.0",
|
||||
"husky": "8.0.3",
|
||||
"jsdom": "13.2.0",
|
||||
"json": "9.0.6",
|
||||
"lodash.defaultsdeep": "4.6.1",
|
||||
|
@ -7643,6 +7644,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",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"scripts": {
|
||||
"build": "npm run clean && webpack --progress --colors --bail",
|
||||
"clean": "rimraf ./dist",
|
||||
"prepare": "husky install",
|
||||
"start": "webpack-dev-server",
|
||||
"test": "npm run test:lint && npm run test:unit",
|
||||
"test:lint": "eslint . --ext .js",
|
||||
|
@ -42,6 +43,7 @@
|
|||
"eslint": "8.55.0",
|
||||
"eslint-config-scratch": "9.0.3",
|
||||
"eslint-plugin-import": "2.29.0",
|
||||
"husky": "8.0.3",
|
||||
"jsdom": "13.2.0",
|
||||
"json": "9.0.6",
|
||||
"lodash.defaultsdeep": "4.6.1",
|
||||
|
|
Loading…
Reference in a new issue