From a78d8197e690a3307ba276e994a783767709cd3b Mon Sep 17 00:00:00 2001 From: Armano Date: Fri, 14 Jul 2017 13:05:09 +0200 Subject: [PATCH 1/3] Fix options documentation in order-in-components --- docs/rules/order-in-components.md | 38 ++++++++++++++++--------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/docs/rules/order-in-components.md b/docs/rules/order-in-components.md index 4e4e71dfe..93e62074f 100644 --- a/docs/rules/order-in-components.md +++ b/docs/rules/order-in-components.md @@ -64,24 +64,26 @@ export default { If you want you can change the order providing the optional configuration in your `.eslintrc` file. Setting responsible for the above order looks like this: ``` -vue/order-in-components: [2, { - order: [ - ['name', 'delimiters', 'functional', 'model'], - ['components', 'directives', 'filters'], - ['parent', 'mixins', 'extends', 'provide', 'inject'], - 'el', - 'template', - 'props', - 'propsData', - 'data', - 'computed', - 'watch', - 'lifecycle_hooks', - 'methods', - 'render', - 'renderError' - ] -}] +{ + 'vue/order-in-components': [2, { + order: [ + ['name', 'delimiters', 'functional', 'model'], + ['components', 'directives', 'filters'], + ['parent', 'mixins', 'extends', 'provide', 'inject'], + 'el', + 'template', + 'props', + 'propsData', + 'data', + 'computed', + 'watch', + 'LIFECYCLE_HOOKS', + 'methods', + 'render', + 'renderError' + ] + } +] ``` If you want some of properties to be treated equally in order you can group them into arrays, like we did with `name`, `delimiters`, `funcitonal` and `model`. From 9ce1436b60c6bbf179ad8dddd011aa576258b31e Mon Sep 17 00:00:00 2001 From: Armano Date: Fri, 14 Jul 2017 13:47:44 +0200 Subject: [PATCH 2/3] Update order-in-components.md --- docs/rules/order-in-components.md | 38 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/docs/rules/order-in-components.md b/docs/rules/order-in-components.md index 93e62074f..484735027 100644 --- a/docs/rules/order-in-components.md +++ b/docs/rules/order-in-components.md @@ -64,26 +64,24 @@ export default { If you want you can change the order providing the optional configuration in your `.eslintrc` file. Setting responsible for the above order looks like this: ``` -{ - 'vue/order-in-components': [2, { - order: [ - ['name', 'delimiters', 'functional', 'model'], - ['components', 'directives', 'filters'], - ['parent', 'mixins', 'extends', 'provide', 'inject'], - 'el', - 'template', - 'props', - 'propsData', - 'data', - 'computed', - 'watch', - 'LIFECYCLE_HOOKS', - 'methods', - 'render', - 'renderError' - ] - } -] +vue/order-in-components: [2, { + order: [ + ['name', 'delimiters', 'functional', 'model'], + ['components', 'directives', 'filters'], + ['parent', 'mixins', 'extends', 'provide', 'inject'], + 'el', + 'template', + 'props', + 'propsData', + 'data', + 'computed', + 'watch', + 'LIFECYCLE_HOOKS', + 'methods', + 'render', + 'renderError' + ] +} ``` If you want some of properties to be treated equally in order you can group them into arrays, like we did with `name`, `delimiters`, `funcitonal` and `model`. From 45911ccd2b35abdf03c3c7919f5e4e9ce314ca79 Mon Sep 17 00:00:00 2001 From: Armano Date: Fri, 14 Jul 2017 13:48:10 +0200 Subject: [PATCH 3/3] Update order-in-components.md --- docs/rules/order-in-components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/order-in-components.md b/docs/rules/order-in-components.md index 484735027..34fe9ccd4 100644 --- a/docs/rules/order-in-components.md +++ b/docs/rules/order-in-components.md @@ -81,7 +81,7 @@ vue/order-in-components: [2, { 'render', 'renderError' ] -} +}] ``` If you want some of properties to be treated equally in order you can group them into arrays, like we did with `name`, `delimiters`, `funcitonal` and `model`.