From 23d5311a515755ba3171fc5d26dc4c6486eff9a2 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Mon, 16 Oct 2023 16:19:43 +0100 Subject: [PATCH] Fix husky config for automatic linting on commit Change-type: patch --- .husky/pre-commit | 4 ++++ package.json | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100755 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 00000000..41ae0d5c --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npx --no lint-staged diff --git a/package.json b/package.json index 2cbf7d4e..d40cfc55 100644 --- a/package.json +++ b/package.json @@ -139,11 +139,6 @@ "winston": "^3.3.3", "yargs": "^15.4.1" }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, "versionist": { "publishedAt": "2023-10-16T13:50:18.745Z" }