代码拉取完成,页面将自动刷新
{
"name": "home",
"version": "1.0.0",
"private": true,
"scripts": {
"build": "umi build",
"dev": "npm run start",
"lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier && npm run tsc",
"lint-staged": "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",
"lint:prettier": "prettier -c --write \"src/**/*\" --end-of-line auto",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"postinstall": "umi generate tmp",
"precommit": "lint-staged",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"start": "umi dev",
"test": "umi-test",
"test:coverage": "umi-test --coverage"
},
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write"
]
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
],
"dependencies": {
"antd": "^4.24.7",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"umi": "^3.5.36"
},
"devDependencies": {
"@types/react": "^17.0.52",
"@types/react-dom": "^17.0.18",
"@umijs/fabric": "^2.14.0",
"@umijs/preset-react": "^1.8.31",
"@umijs/test": "^3.5.36",
"@umijs/yorkie": "^2.0.3",
"eslint": "^7.32.0",
"lint-staged": "^10.0.7",
"prettier": "^2.8.1",
"stylelint": "^13.0.0",
"typescript": "^4.9.4"
},
"engines": {
"node": ">=10.0.0"
},
"checkFiles": [
"src/**/*.js*",
"src/**/*.ts*",
"src/**/*.less",
"config/**/*.js*",
"scripts/**/*.js"
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。