We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b8128a commit 87285efCopy full SHA for 87285ef
1 file changed
lib/util/Components.js
@@ -152,7 +152,7 @@ function componentRule(rule, context) {
152
}
153
154
const returnsJSX = node[property]
155
- && node[property].type === 'JSXElement';
+ && (node[property].type === 'JSXElement' || node[property].type === 'JSXFragment');
156
const returnsReactCreateElement = node[property]
157
&& node[property].callee
158
&& node[property].callee.property
0 commit comments