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
9797| | [ no-reserved-keys] ( ./docs/rules/no-reserved-keys.md ) | disallow overwriting reserved keys |
9898| | [ no-shared-component-data] ( ./docs/rules/no-shared-component-data.md ) | enforce component's data property to be a function |
9999| | [ 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 |
100101| | [ require-render-return] ( ./docs/rules/require-render-return.md ) | enforce render function to always return value |
101102| | [ require-valid-default-prop] ( ./docs/rules/require-valid-default-prop.md ) | enforce props default values to be valid |
102103| | [ 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)
22
33This rule report variable definitions of v-for directives or scope attributes if those are not used.
44
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ module.exports = {
4040 "vue/no-side-effects-in-computed-properties" : "off" ,
4141 "vue/no-template-key" : "off" ,
4242 "vue/no-textarea-mustache" : "error" ,
43+ "vue/no-unused-vars" : "off" ,
4344 "vue/order-in-components" : "off" ,
4445 "vue/require-component-is" : "error" ,
4546 "vue/require-default-prop" : "off" ,
Original file line number Diff line number Diff line change 11/**
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.
33 * @author 薛定谔的猫<hh_2013@foxmail.com>
44 */
55'use strict'
@@ -37,7 +37,7 @@ module.exports = {
3737 create,
3838 meta : {
3939 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' ,
4141 category : 'Possible Errors' ,
4242 recommended : false
4343 } ,
You can’t perform that action at this time.
0 commit comments