Skip to content

Chore: fix rule no-unused-vars description #226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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