Skip to content

Commit

Permalink
docs: fix formatting and grammar for clarity (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
thedelk committed Nov 3, 2022
1 parent c7c1271 commit 9673a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/no-arrow-functions-in-watch.md
Expand Up @@ -13,7 +13,7 @@ since: v7.0.0

## :book: Rule Details

This rules disallows using arrow functions to defined watcher.The reason is arrow functions bind the parent context, so `this` will not be the Vue instance as you expect.([see here for more details](https://vuejs.org/api/options-state.html#watch))
This rule disallows using arrow functions when defining a watcher. Arrow functions bind to their parent context, which means they will not have access to the Vue component instance via `this`. [See here for more details](https://vuejs.org/api/options-state.html#watch).

<eslint-code-block :rules="{'vue/no-arrow-functions-in-watch': ['error']}">

Expand Down

0 comments on commit 9673a61

Please sign in to comment.