From 2dad41a7b5cd44620569b89e339d77503c95d7ab Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 22 Sep 2024 20:54:50 +0800 Subject: [PATCH] chore: fix husky and lint-staged warning --- .husky/pre-commit | 5 +---- package.json | 5 ++--- 2 files changed, 3 insertions(+), 7 deletions(-) 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 b7eef013..dbe9e86e 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", @@ -86,8 +86,7 @@ }, "lint-staged": { "**/*.{js,jsx,tsx,ts,md,json}": [ - "prettier --write", - "git add" + "prettier --write" ] } }