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

Commit

Permalink
fix: nuxt/require-func-head doesnt work with factories
Browse files Browse the repository at this point in the history
close #94
  • Loading branch information
clarkdo committed May 11, 2020
1 parent 7668ace commit 5480fd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rules/require-func-head.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ module.exports = {
p.key.name === 'head' &&
p.value.type !== 'FunctionExpression' &&
p.value.type !== 'ArrowFunctionExpression' &&
p.value.type !== 'Identifier'
p.value.type !== 'Identifier' &&
p.value.type !== 'CallExpression'
)
.forEach(p => {
context.report({
Expand Down

0 comments on commit 5480fd0

Please sign in to comment.