Skip to content

Commit 170b091

Browse files
author
Tim Chon
committed
add TemplateLiteral as invalid callee type
1 parent 116cfff commit 170b091

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/isStatelessComponent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function isValidCalleeType(type) {
3232
'Identifier',
3333
'CallExpression',
3434
'ArrayExpression',
35+
'TemplateLiteral'
3536
'Literal'
3637
].indexOf(type) < 0;
3738
}

0 commit comments

Comments
 (0)