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

nuxt/require-func-head doesnt work with factories #94

Closed
pimlie opened this issue Feb 25, 2020 · 0 comments
Closed

nuxt/require-func-head doesnt work with factories #94

pimlie opened this issue Feb 25, 2020 · 0 comments
Assignees

Comments

@pimlie
Copy link

pimlie commented Feb 25, 2020

This nuxt/require-func-head rule doesnt detect factories. Im using a head factory method which only returns a function when its needed.

So I need the code to be:

head: createHead({})

but instead this rule transforms it into

head() {
  return createHead({})
}

which wont work if createHead returns an fn itself (which is most cases)

@clarkdo clarkdo self-assigned this May 11, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants