Skip to content

Commit 1ffcd01

Browse files
authored
Update no-unused-vars.md
1 parent 1e14d66 commit 1ffcd01

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: docs/rules/no-unused-vars.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,18 @@ This rule report variable definitions of v-for directives or scope attributes if
3535

3636
```js
3737
{
38-
"vue/no-unsed-vars": [{
39-
"ignorePattern": '^_',
38+
"vue/no-unused-vars": ["error", {
39+
"ignorePattern": "^_"
4040
}]
4141
}
4242
```
43+
4344
- `ignorePattern` ... disables reporting when your definitions of v-for directives or scope attributes match your ignorePattern Regular expression. default `null`, will ignore nothing
45+
4446
## :rocket: Suggestion
47+
4548
- When your ignorePattern set to `^_`, we could provide a suggestion which add a prefix`_` to your variable and no more eslint error
49+
4650
## :mag: Implementation
4751

4852
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-unused-vars.js)

0 commit comments

Comments
 (0)