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",