diff --git a/lib/util/Components.js b/lib/util/Components.js index deb26dda56..9eb0f78282 100644 --- a/lib/util/Components.js +++ b/lib/util/Components.js @@ -689,6 +689,7 @@ function componentRule(rule, context) { getStatelessComponent(node) { if ( node.type === 'FunctionDeclaration' + && node.id && isFirstLetterCapitalized(node.id.name) && utils.isReturningJSXOrNull(node) ) {