From 336014bb527edff01cfa847a8199ada60760356f Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Wed, 22 Jul 2020 21:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20clean:=20clean=20package.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 4ee4118c..6a381816 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "i18n-remove": "pro i18n-remove --locale=zh-CN --write", "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier", "lint:prettier": "prettier --check \"**/*\" --end-of-line auto", - "lint-staged": "lint-staged", + "precommit": "lint-staged", "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ", "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style", "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src", @@ -40,11 +40,6 @@ "test:component": "umi test ./src/components", "tsc": "tsc" }, - "husky": { - "hooks": { - "pre-commit": "npm run lint-staged" - } - }, "lint-staged": { "**/*.less": "stylelint --syntax less", "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js", @@ -91,6 +86,7 @@ "@umijs/preset-ant-design-pro": "^1.2.0", "@umijs/preset-react": "^1.4.8", "@umijs/preset-ui": "^2.0.9", + "@umijs/yorkie": "^2.0.3", "carlo": "^0.9.46", "chalk": "^4.0.0", "cross-env": "^7.0.0", @@ -100,7 +96,6 @@ "eslint": "^7.1.0", "express": "^4.17.1", "gh-pages": "^3.0.0", - "husky": "^4.0.7", "jsdom-global": "^3.0.2", "lint-staged": "^10.0.0", "mockjs": "^1.0.1-beta3",