Skip to content

Commit

Permalink
Chore: fix rule no-unused-vars description (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add authored and mysticatea committed Nov 2, 2017
1 parent 43c3f3a commit e914fe2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ The `--fix` option on the command line automatically fixes problems reported by
| | [no-reserved-keys](./docs/rules/no-reserved-keys.md) | disallow overwriting reserved keys |
| | [no-shared-component-data](./docs/rules/no-shared-component-data.md) | enforce component's data property to be a function |
| | [no-template-key](./docs/rules/no-template-key.md) | disallow `key` attribute on `<template>` |
| | [no-unused-vars](./docs/rules/no-unused-vars.md) | disallow unused variable definitions of v-for directives or scope attributes |
| | [require-render-return](./docs/rules/require-render-return.md) | enforce render function to always return value |
| | [require-valid-default-prop](./docs/rules/require-valid-default-prop.md) | enforce props default values to be valid |
| | [return-in-computed-property](./docs/rules/return-in-computed-property.md) | enforce that a return statement is present in computed property |
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-unused-vars.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Disallow unused variable definitions of v-for directives or scope attributes. (no-unused-vars)
# disallow unused variable definitions of v-for directives or scope attributes (no-unused-vars)

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

Expand Down
1 change: 1 addition & 0 deletions lib/recommended-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ module.exports = {
"vue/no-side-effects-in-computed-properties": "off",
"vue/no-template-key": "off",
"vue/no-textarea-mustache": "error",
"vue/no-unused-vars": "off",
"vue/order-in-components": "off",
"vue/require-component-is": "error",
"vue/require-default-prop": "off",
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-unused-vars.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @fileoverview warn variable definitions of v-for directives or scope attributes if those are not used.
* @fileoverview disallow unused variable definitions of v-for directives or scope attributes.
* @author 薛定谔的猫<hh_2013@foxmail.com>
*/
'use strict'
Expand Down Expand Up @@ -37,7 +37,7 @@ module.exports = {
create,
meta: {
docs: {
description: 'warn variable definitions of v-for directives or scope attributes if those are not used',
description: 'disallow unused variable definitions of v-for directives or scope attributes',
category: 'Possible Errors',
recommended: false
},
Expand Down

0 comments on commit e914fe2

Please sign in to comment.