From fe152d198413bee44c14b532b3ca8e95299f878c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 19 Jan 2021 21:04:43 +0800 Subject: [PATCH] chore: update pre-commit --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 65dc0446..86c009ad 100644 --- a/package.json +++ b/package.json @@ -13,19 +13,21 @@ "type-check": "lerna exec \"tsc --noEmit\" --scope create-tsbb --scope tsbb --stream", "hoist": "lerna bootstrap --hoist", "clean": "lerna clean --yes", + "pretty-quick": "pretty-quick", "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", "version": "lerna version --no-changelog --no-git-tag-version --no-push --yes", "publish": "lerna publish from-package" }, "husky": { "hooks": { - "pre-commit": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"" + "pre-commit": "pretty-quick --staged" } }, "dependencies": { "husky": "4.3.8", "lerna": "3.22.1", "prettier": "2.2.1", + "pretty-quick": "3.1.0", "typescript": "4.1.3" }, "workspaces": [