Skip to content

Commit 02a3df0

Browse files
committed
style: eslint check test
1 parent 8da3b83 commit 02a3df0

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@
6161

6262
## 文档
6363

64-
- https://www.easyjs.cn/egg-vue
65-
- https://www.easyjs.cn/easywebpack
64+
- https://easyjs.cn/egg-vue
65+
- https://easyjs.cn/easywebpack
6666
- https://www.yuque.com/easy-team/egg-vue
6767
- https://zhuanlan.zhihu.com/easywebpack
6868

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@
1515
"ii": "npm install --registry https://registry.npm.taobao.org",
1616
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
1717
},
18+
"husky": {
19+
"hooks": {
20+
"pre-commit": "lint-staged"
21+
}
22+
},
23+
"lint-staged": {
24+
"**/*.{js, vue}": [
25+
"npm run lint",
26+
"git add"
27+
]
28+
},
1829
"dependencies": {
1930
"axios": "^0.18.1",
2031
"cross-env": "^5.0.0",
@@ -54,6 +65,7 @@
5465
"eslint": "^4.19.1",
5566
"eslint-config-egg": "^5.0.0",
5667
"eslint-plugin-vue": "^4.4.0",
68+
"husky": "^4.2.5",
5769
"ip": "^1.1.5",
5870
"raw-loader": "^3.0.0"
5971
},

0 commit comments

Comments
 (0)