diff --git a/.husky/pre-commit b/.husky/pre-commit index 9f5c7d2442..c16c90c8e5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -# npx lint-staged +npm run lint:changed-feature-branch diff --git a/.husky/pre-push b/.husky/pre-push index c10402243b..f9908b77da 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,5 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -# fetching latest changes `git fetch -a --depth 100` to ensure the base branch is up to date -# git fetch -a --depth 100 && npm run lint:changed-feature-branch && npm run test:changed-feature-branch +git fetch -a --depth 100 && npm run lint:changed-feature-branch && npm run test:changed-feature-branch