Skip to content

Commit 336014b

Browse files
committed
πŸ”₯ clean: clean package.json
1 parent 6fc031e commit 336014b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

β€Žpackage.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"i18n-remove": "pro i18n-remove --locale=zh-CN --write",
2121
"lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
2222
"lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
23-
"lint-staged": "lint-staged",
23+
"precommit": "lint-staged",
2424
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
2525
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
2626
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
@@ -40,11 +40,6 @@
4040
"test:component": "umi test ./src/components",
4141
"tsc": "tsc"
4242
},
43-
"husky": {
44-
"hooks": {
45-
"pre-commit": "npm run lint-staged"
46-
}
47-
},
4843
"lint-staged": {
4944
"**/*.less": "stylelint --syntax less",
5045
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
@@ -91,6 +86,7 @@
9186
"@umijs/preset-ant-design-pro": "^1.2.0",
9287
"@umijs/preset-react": "^1.4.8",
9388
"@umijs/preset-ui": "^2.0.9",
89+
"@umijs/yorkie": "^2.0.3",
9490
"carlo": "^0.9.46",
9591
"chalk": "^4.0.0",
9692
"cross-env": "^7.0.0",
@@ -100,7 +96,6 @@
10096
"eslint": "^7.1.0",
10197
"express": "^4.17.1",
10298
"gh-pages": "^3.0.0",
103-
"husky": "^4.0.7",
10499
"jsdom-global": "^3.0.2",
105100
"lint-staged": "^10.0.0",
106101
"mockjs": "^1.0.1-beta3",

0 commit comments

Comments
Β (0)