-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch: fix husky to work with v above 5
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run prettify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"url": "[email protected]: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. <[email protected]>", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
|