File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ The `--fix` option on the command line automatically fixes problems reported by
97
97
| | [ no-reserved-keys] ( ./docs/rules/no-reserved-keys.md ) | disallow overwriting reserved keys |
98
98
| | [ no-shared-component-data] ( ./docs/rules/no-shared-component-data.md ) | enforce component's data property to be a function |
99
99
| | [ no-template-key] ( ./docs/rules/no-template-key.md ) | disallow ` key ` attribute on ` <template> ` |
100
+ | | [ no-unused-vars] ( ./docs/rules/no-unused-vars.md ) | disallow unused variable definitions of v-for directives or scope attributes |
100
101
| | [ require-render-return] ( ./docs/rules/require-render-return.md ) | enforce render function to always return value |
101
102
| | [ require-valid-default-prop] ( ./docs/rules/require-valid-default-prop.md ) | enforce props default values to be valid |
102
103
| | [ return-in-computed-property] ( ./docs/rules/return-in-computed-property.md ) | enforce that a return statement is present in computed property |
Original file line number Diff line number Diff line change 1
- # Disallow unused variable definitions of v-for directives or scope attributes. (no-unused-vars)
1
+ # disallow unused variable definitions of v-for directives or scope attributes (no-unused-vars)
2
2
3
3
This rule report variable definitions of v-for directives or scope attributes if those are not used.
4
4
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ module.exports = {
40
40
"vue/no-side-effects-in-computed-properties" : "off" ,
41
41
"vue/no-template-key" : "off" ,
42
42
"vue/no-textarea-mustache" : "error" ,
43
+ "vue/no-unused-vars" : "off" ,
43
44
"vue/order-in-components" : "off" ,
44
45
"vue/require-component-is" : "error" ,
45
46
"vue/require-default-prop" : "off" ,
Original file line number Diff line number Diff line change 1
1
/**
2
- * @fileoverview warn variable definitions of v-for directives or scope attributes if those are not used .
2
+ * @fileoverview disallow unused variable definitions of v-for directives or scope attributes.
3
3
* @author 薛定谔的猫<hh_2013@foxmail.com>
4
4
*/
5
5
'use strict'
@@ -37,7 +37,7 @@ module.exports = {
37
37
create,
38
38
meta : {
39
39
docs : {
40
- description : 'warn variable definitions of v-for directives or scope attributes if those are not used ' ,
40
+ description : 'disallow unused variable definitions of v-for directives or scope attributes' ,
41
41
category : 'Possible Errors' ,
42
42
recommended : false
43
43
} ,
You can’t perform that action at this time.
0 commit comments