You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-unused-vars.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -35,14 +35,18 @@ This rule report variable definitions of v-for directives or scope attributes if
35
35
36
36
```js
37
37
{
38
-
"vue/no-unsed-vars": [{
39
-
"ignorePattern":'^_',
38
+
"vue/no-unused-vars": ["error", {
39
+
"ignorePattern":"^_"
40
40
}]
41
41
}
42
42
```
43
+
43
44
-`ignorePattern` ... disables reporting when your definitions of v-for directives or scope attributes match your ignorePattern Regular expression. default `null`, will ignore nothing
45
+
44
46
## :rocket: Suggestion
47
+
45
48
- When your ignorePattern set to `^_`, we could provide a suggestion which add a prefix`_` to your variable and no more eslint error
0 commit comments