We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt.js's asyncData, fetch and head component properties were already added to the order-in-components rule.
order-in-components
There are others, though:
Additionally, Vue Router defines three in-component navigation guards:
It would be useful to have them included in the default rule config to enforce a consistent style.
I'd like to suggest the following order:
// side effects "el", // global awareness "name", + "key", "parent", // component type "functional", // template modifiers ["delimiters", "comments"], // template dependencies ["components", "directives", "filters"], // composition "extends", "mixins", + // new category: page validation + "beforeRouteEnter", + "beforeRouteUpdate", + "beforeRouteLeave", + "middleware", + "validate", // interface "inheritAttrs", "model", ["props", "propsData"], // local state "fetch", "asyncData", "data", "computed", // events "watch", + "watchQuery", "LIFECYCLE_HOOKS", // non-reactive properties "methods", "head", // rendering + "layout", ["template", "render"], "renderError", + "transition", + "loading", + "scrollToTop",
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Nuxt.js's asyncData, fetch and head component properties were already added to the
order-in-components
rule.There are others, though:
Additionally, Vue Router defines three in-component navigation guards:
It would be useful to have them included in the default rule config to enforce a consistent style.
I'd like to suggest the following order:
The text was updated successfully, but these errors were encountered: