Skip to content

Commit e914fe2

Browse files
aladdin-addmysticatea
authored andcommitted
Chore: fix rule no-unused-vars description (#226)
1 parent 43c3f3a commit e914fe2

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 |

docs/rules/no-unused-vars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
This rule report variable definitions of v-for directives or scope attributes if those are not used.
44

lib/recommended-rules.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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",

lib/rules/no-unused-vars.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
},

0 commit comments

Comments
 (0)