diff --git a/.husky/pre-commit b/.husky/pre-commit index d24fdfc6..c27d8893 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx lint-staged +lint-staged diff --git a/package.json b/package.json index f04eaf46..f929e8a7 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "test": "rc-test", "coverage": "rc-test --coverage", "now-build": "npm run docs:build", - "prepare": "husky install" + "prepare": "husky" }, "dependencies": { "@babel/runtime": "^7.10.1", @@ -87,8 +87,7 @@ }, "lint-staged": { "**/*.{js,jsx,tsx,ts,md,json}": [ - "prettier --write", - "git add" + "prettier --write" ] } }