diff --git a/docs/rules/order-in-components.md b/docs/rules/order-in-components.md index c28e283b4..d215cf1ee 100644 --- a/docs/rules/order-in-components.md +++ b/docs/rules/order-in-components.md @@ -74,11 +74,14 @@ export default { "inheritAttrs", "model", ["props", "propsData"], + "fetch", + "asyncData", "data", "computed", "watch", "LIFECYCLE_HOOKS", "methods", + "head", ["template", "render"], "renderError" ] diff --git a/lib/rules/order-in-components.js b/lib/rules/order-in-components.js index db057143b..5f2c4ecd8 100644 --- a/lib/rules/order-in-components.js +++ b/lib/rules/order-in-components.js @@ -19,13 +19,14 @@ const defaultOrder = [ 'inheritAttrs', 'model', ['props', 'propsData'], + 'fetch', + 'asyncData', 'data', 'computed', 'watch', - 'asyncData', - 'fetch', 'LIFECYCLE_HOOKS', 'methods', + 'head', ['template', 'render'], 'renderError' ]