diff --git a/.husky/pre-commit b/.husky/pre-commit index df45562e66..c17f5a6997 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - # Run lint-staged to process only changed JS files -npx lint-staged +lint-staged diff --git a/package.json b/package.json index 986d97db07..c8333df3aa 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "ipa-filter-violations": "node tools/spectral/ipa/scripts/filter-ipa-violations.js", "spectral-validation": "spectral lint ./openapi/.raw/v2.yaml --ruleset=./tools/spectral/.spectral.yaml", "test": "jest", - "precommit": "husky install" + "precommit": "husky" }, "jest": { "transform": {