From e5acd05f4b4e7d53663bde9a622d43e13a33b33e Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Fri, 31 Jul 2020 14:34:01 +0200 Subject: [PATCH] Reorder Nuxt.js's `fetch` method in `vue/order-in-components` --- docs/rules/order-in-components.md | 2 +- lib/rules/order-in-components.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rules/order-in-components.md b/docs/rules/order-in-components.md index 0820c8035..8fae0c294 100644 --- a/docs/rules/order-in-components.md +++ b/docs/rules/order-in-components.md @@ -85,9 +85,9 @@ export default { ["props", "propsData"], "emits", "setup", - "fetch", "asyncData", "data", + "fetch", "head", "computed", "watch", diff --git a/lib/rules/order-in-components.js b/lib/rules/order-in-components.js index 92b9b4c15..5f3373458 100644 --- a/lib/rules/order-in-components.js +++ b/lib/rules/order-in-components.js @@ -56,9 +56,9 @@ const defaultOrder = [ 'setup', // for Vue 3.x // Local State (local reactive properties) - 'fetch', // for Nuxt 'asyncData', // for Nuxt 'data', + 'fetch', // for Nuxt 'head', // for Nuxt 'computed',