Skip to content

Commit 80b9395

Browse files
mactanxinhaoqunjiang
authored andcommitted
Updated zh-cn translation in cli section (#5019)
* UPDATDED: translation in simplified Chinese for 'yorkie' and 'husky' in warning * UPDATED: add missing code snippits in EN doc
1 parent 1ae53e5 commit 80b9395

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/zh/guide/cli-service.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,18 @@ npx vue-cli-service help [command]
126126
{
127127
"gitHooks": {
128128
"pre-commit": "lint-staged"
129+
},
130+
"lint-staged": {
131+
"*.{js,vue}": [
132+
"vue-cli-service lint",
133+
"git add"
134+
]
129135
}
130136
}
131137
```
132138

133139
::: warning
134-
`yorkie` fork 自 [`husky`](https://github.com/typicode/husky) 且并不和之后的版本兼容
140+
`yorkie` fork 自 [`husky`](https://github.com/typicode/husky) 且并与后者不兼容
135141
:::
136142

137143
## 配置时无需 Eject

0 commit comments

Comments
 (0)