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

Commit 11492e2

Browse files
committedMay 11, 2020
fix: nuxt/require-func-head doesnt work with factories
close #94
1 parent f0ab470 commit 11492e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lib/rules/require-func-head.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ module.exports = {
3333
p.key.name === 'head' &&
3434
p.value.type !== 'FunctionExpression' &&
3535
p.value.type !== 'ArrowFunctionExpression' &&
36-
p.value.type !== 'Identifier'
36+
p.value.type !== 'Identifier' &&
37+
p.value.type !== 'CallExpression'
3738
)
3839
.forEach(p => {
3940
context.report({

0 commit comments

Comments
 (0)
This repository has been archived.