Skip to content

Commit 37ec77a

Browse files
authored
Reorder Nuxt.js's fetch method in vue/order-in-components (#1268)
1 parent d339b61 commit 37ec77a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/rules/order-in-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ export default {
8585
["props", "propsData"],
8686
"emits",
8787
"setup",
88-
"fetch",
8988
"asyncData",
9089
"data",
90+
"fetch",
9191
"head",
9292
"computed",
9393
"watch",

lib/rules/order-in-components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ const defaultOrder = [
5656
'setup', // for Vue 3.x
5757

5858
// Local State (local reactive properties)
59-
'fetch', // for Nuxt
6059
'asyncData', // for Nuxt
6160
'data',
61+
'fetch', // for Nuxt
6262
'head', // for Nuxt
6363
'computed',
6464

0 commit comments

Comments
 (0)