From 72c1741831cabc4f72506c369293f56b2955204e Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Thu, 19 Aug 2021 17:01:48 +0200 Subject: [PATCH] add git hook --- .husky/pre-commit | 4 ++++ package.json | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100755 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000000..04225e10ae --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +yarn run lint:fix diff --git a/package.json b/package.json index 86e042e139..76f6a49d4a 100644 --- a/package.json +++ b/package.json @@ -47,11 +47,6 @@ "build:docker:develop": "node scripts/pinVersions && lerna run build:docker && cd hosting/scripts/linux/ && ./release-to-docker-hub.sh develop && cd -", "multi:enable": "lerna run multi:enable", "multi:disable": "lerna run multi:disable", - "prepare": "husky install" - }, - "husky": { - "hooks": { - "pre-commit": "yarn run lint:fix" - } + "postinstall": "husky install" } }