Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (26 loc) · 632 Bytes

require-func-head.md

File metadata and controls

40 lines (26 loc) · 632 Bytes

nuxt/require-func-head

enforce head property in component to be a function.

  • ⚙️ This rule is included in "plugin:nuxt/recommended".

Rule Details

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"
    }
  }
}

🔍 Implementation