mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 23:37:18 +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"
|
||||
},
|
||||
"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",
|
||||
"lint": "npm run prettify && catch-uncommitted",
|
||||
"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:ci": "xvfb-maybe wdio run ./wdio.conf.ts --suite ci"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm run prettify"
|
||||
}
|
||||
},
|
||||
"author": "Balena Ltd. <hello@balena.io>",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user