From 510675e1c395eaedf2ce6b31e31ce057bda0110f Mon Sep 17 00:00:00 2001 From: OpenTiny Date: Fri, 24 Mar 2023 17:31:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(tiny-vue):=20=E4=BF=AE=E6=94=B9package.json?= =?UTF-8?q?[WI2029]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Match-id-8e0d6161964178ca68ee111f3bb0c60e27d9f3e0 --- package.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/package.json b/package.json index fab44c5e6..0e2a3bbe8 100644 --- a/package.json +++ b/package.json @@ -115,7 +115,11 @@ "@volar-plugins/eslint": "^0.0.4", "@volar-plugins/prettier": "^1.1.5", "@volar-plugins/prettyhtml": "^1.0.3", + "lint-staged": "^13.0.3", + "prettier": "^2.7.1", "@vue/tsconfig": "^0.1.3", + "@commitlint/cli": "^17.3.0", + "@commitlint/config-conventional": "^17.3.0", "depcheck": "1.4.3", "eslint": "^8.31.0", "lerna": "^6.4.0", @@ -127,6 +131,23 @@ "vue-tsc": "^1.0.24", "vue-tsc-eslint-hook": "^1.0.24" }, + "husky": { + "hooks": { + "pre-commit": "lint-staged", + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" + } + }, + "lint-staged": { + "*.{js,ts,jsx,tsx,vue}": [ + "prettier --write", + "eslint --fix" + ] + }, + "config": { + "commitizen": { + "path": "cz-conventional-changelog" + } + }, "pnpm": { "patchedDependencies": { "depcheck@1.4.3": "patches/depcheck@1.4.3.patch",