提交 336014bb 编写于 作者: C chenshuai2144

🔥 clean: clean package.json

上级 6fc031e5
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"i18n-remove": "pro i18n-remove --locale=zh-CN --write", "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": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
"lint:prettier": "prettier --check \"**/*\" --end-of-line auto", "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-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: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", "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
...@@ -40,11 +40,6 @@ ...@@ -40,11 +40,6 @@
"test:component": "umi test ./src/components", "test:component": "umi test ./src/components",
"tsc": "tsc" "tsc": "tsc"
}, },
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
}
},
"lint-staged": { "lint-staged": {
"**/*.less": "stylelint --syntax less", "**/*.less": "stylelint --syntax less",
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js", "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
...@@ -91,6 +86,7 @@ ...@@ -91,6 +86,7 @@
"@umijs/preset-ant-design-pro": "^1.2.0", "@umijs/preset-ant-design-pro": "^1.2.0",
"@umijs/preset-react": "^1.4.8", "@umijs/preset-react": "^1.4.8",
"@umijs/preset-ui": "^2.0.9", "@umijs/preset-ui": "^2.0.9",
"@umijs/yorkie": "^2.0.3",
"carlo": "^0.9.46", "carlo": "^0.9.46",
"chalk": "^4.0.0", "chalk": "^4.0.0",
"cross-env": "^7.0.0", "cross-env": "^7.0.0",
...@@ -100,7 +96,6 @@ ...@@ -100,7 +96,6 @@
"eslint": "^7.1.0", "eslint": "^7.1.0",
"express": "^4.17.1", "express": "^4.17.1",
"gh-pages": "^3.0.0", "gh-pages": "^3.0.0",
"husky": "^4.0.7",
"jsdom-global": "^3.0.2", "jsdom-global": "^3.0.2",
"lint-staged": "^10.0.0", "lint-staged": "^10.0.0",
"mockjs": "^1.0.1-beta3", "mockjs": "^1.0.1-beta3",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册