Skip to content

Commit 0406853

Browse files
committed
update
1 parent 1712c34 commit 0406853

File tree

3 files changed

+22
-346
lines changed

3 files changed

+22
-346
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"dotenv": "6.2.0",
2222
"dotenv-expand": "4.2.0",
2323
"echarts": "^4.3.0",
24-
"eslint": "^6.1.0",
2524
"eslint-config-react-app": "^5.0.0",
2625
"eslint-loader": "2.2.1",
2726
"eslint-plugin-flowtype": "3.13.0",
@@ -32,7 +31,6 @@
3231
"file-loader": "3.0.1",
3332
"fs-extra": "7.0.1",
3433
"html-webpack-plugin": "4.0.0-beta.5",
35-
"husky": "^3.0.9",
3634
"identity-obj-proxy": "3.0.0",
3735
"is-wsl": "^1.1.0",
3836
"jest": "24.8.0",
@@ -77,6 +75,11 @@
7775
"build": "node scripts/build.js",
7876
"test": "node scripts/test.js"
7977
},
78+
"husky": {
79+
"hooks": {
80+
"pre-commit": "npm run lint"
81+
}
82+
},
8083
"eslintConfig": {
8184
"extends": "react-app"
8285
},

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Header() {
7979
<Link to="/form">form表单</Link>
8080
</li>
8181
<li>
82-
<Link to="/testPromise">封装req</Link>
82+
<Link to="/testPromise">封装req的方法</Link>
8383
</li>
8484
</ul>
8585
);

0 commit comments

Comments
 (0)