From 5560d97f6a1d034b933d352b953a957d9bee61fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iiro=20Ja=CC=88ppinen?= Date: Fri, 7 May 2021 09:10:21 +0300 Subject: [PATCH] fix: migrate husky@6 --- .husky/.gitignore | 1 + .husky/pre-commit | 4 ++++ package.json | 5 ----- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 .husky/.gitignore create mode 100755 .husky/pre-commit diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 000000000..31354ec13 --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 000000000..7b9f1fb5d --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +node bin/lint-staged.js diff --git a/package.json b/package.json index e8836961f..dba20462d 100644 --- a/package.json +++ b/package.json @@ -26,11 +26,6 @@ "test": "jest --coverage", "test:watch": "jest --watch" }, - "husky": { - "hooks": { - "pre-commit": "./bin/lint-staged.js" - } - }, "dependencies": { "chalk": "^4.1.1", "cli-truncate": "^2.1.0",