Skip to content

Commit

Permalink
[Fix]: TypeError on getting name of anonymous function
Browse files Browse the repository at this point in the history
  • Loading branch information
wKich committed Jul 27, 2020
1 parent e20522c commit 17c8e63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/util/Components.js
Expand Up @@ -689,6 +689,7 @@ function componentRule(rule, context) {
getStatelessComponent(node) {
if (
node.type === 'FunctionDeclaration'
&& node.id
&& isFirstLetterCapitalized(node.id.name)
&& utils.isReturningJSXOrNull(node)
) {
Expand Down

0 comments on commit 17c8e63

Please sign in to comment.