Skip to content

Files

Latest commit

 

History

History
37 lines (24 loc) · 582 Bytes

require-func-head.md

File metadata and controls

37 lines (24 loc) · 582 Bytes

Pattern: Use of non-fuction head property in component

Issue: -

Description

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

Further Reading