mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
patch: fix husky to work with v above 5
This commit is contained in:
parent
05a838f1ed
commit
45ee9d3cec
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npm run prettify
|
@ -14,6 +14,7 @@
|
|||||||
"url": "git@github.com:balena-io/etcher.git"
|
"url": "git@github.com:balena-io/etcher.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"prepare": "husky install",
|
||||||
"prettify": "prettier --write lib/**/*.css && balena-lint --fix --typescript typings lib tests forge.config.ts forge.sidecar.ts webpack.config.ts",
|
"prettify": "prettier --write lib/**/*.css && balena-lint --fix --typescript typings lib tests forge.config.ts forge.sidecar.ts webpack.config.ts",
|
||||||
"lint": "npm run prettify && catch-uncommitted",
|
"lint": "npm run prettify && catch-uncommitted",
|
||||||
"test": "echo 'Only use custom tests; if you want to test locally, use `npm run wdio`' && exit 0",
|
"test": "echo 'Only use custom tests; if you want to test locally, use `npm run wdio`' && exit 0",
|
||||||
@ -24,11 +25,6 @@
|
|||||||
"wdio:e2e": "xvfb-maybe wdio run ./wdio.conf.ts --suite e2e",
|
"wdio:e2e": "xvfb-maybe wdio run ./wdio.conf.ts --suite e2e",
|
||||||
"wdio:ci": "xvfb-maybe wdio run ./wdio.conf.ts --suite ci"
|
"wdio:ci": "xvfb-maybe wdio run ./wdio.conf.ts --suite ci"
|
||||||
},
|
},
|
||||||
"husky": {
|
|
||||||
"hooks": {
|
|
||||||
"pre-commit": "npm run prettify"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"author": "Balena Ltd. <hello@balena.io>",
|
"author": "Balena Ltd. <hello@balena.io>",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user