Skip to content

Commit f83c441

Browse files
CodermarNataliaTepluhina
authored andcommitted
Update doc section on Git Hooks (#4820)
Added complete required entries for lint-staged to work
1 parent e46ac20 commit f83c441

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/guide/cli-service.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ When installed, `@vue/cli-service` also installs [yorkie](https://github.com/yyx
167167
{
168168
"gitHooks": {
169169
"pre-commit": "lint-staged"
170+
},
171+
"lint-staged": {
172+
"*.{js,vue}": [
173+
"vue-cli-service lint",
174+
"git add"
175+
]
170176
}
171177
}
172178
```

0 commit comments

Comments
 (0)