enforce
head
property in component to be a function.
- ⚙️ This rule is included in
"plugin:nuxt/recommended"
.
This rule is enforcing head
property in component to be a function.
Examples of incorrect code for this rule:
export default {
head: {
title: "My page"
}
}
Examples of correct code for this rule:
export default {
head() {
return {
title: "My page"
}
}
}