From 402fe2acd450d393690b6f15dd3d315aa18a9c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Thu, 2 Nov 2017 16:44:17 +0800 Subject: [PATCH 1/3] Chore: fix rule no-unused-vars description --- lib/rules/no-unused-vars.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rules/no-unused-vars.js b/lib/rules/no-unused-vars.js index c329aecf8..8aadc0a2e 100644 --- a/lib/rules/no-unused-vars.js +++ b/lib/rules/no-unused-vars.js @@ -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 薛定谔的猫 */ 'use strict' @@ -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 }, From 1b1e227536c0d21e7304e6c81f9c5269116c9ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Thu, 2 Nov 2017 16:55:56 +0800 Subject: [PATCH 2/3] Chore: add no-unused-vars in recommended-rules --- lib/recommended-rules.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/recommended-rules.js b/lib/recommended-rules.js index d332ae561..18604033c 100644 --- a/lib/recommended-rules.js +++ b/lib/recommended-rules.js @@ -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", From 3fd8ba4ee77e91a7bfdcb4a239012c01e4143003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Thu, 2 Nov 2017 16:56:57 +0800 Subject: [PATCH 3/3] Docs: add no-unused-vars in readme & update desc. --- README.md | 1 + docs/rules/no-unused-vars.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8382a6647..62121c2e1 100644 --- a/README.md +++ b/README.md @@ -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 `