Skip to content

Commit

Permalink
build: refine husky configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
Jérôme Benoit committed Sep 22, 2023
1 parent bc49696 commit 69d1cb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
npx --no-install lint-staged
2 changes: 1 addition & 1 deletion skip-preinstall.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const skipPreinstall = process.env.SKIP_PREINSTALL || process.env.VCAP_APPLICATION !== undefined;
if (skipPreinstall) {
// eslint-disable-next-line n/no-process-exit
process.exit(0);
process.exit();
} else {
// eslint-disable-next-line n/no-process-exit
process.exit(1);
Expand Down

0 comments on commit 69d1cb5

Please sign in to comment.