@@ -109,15 +109,15 @@ export function isJsxLike(
109109 if ( node . elements . length === 0 ) {
110110 return ! ( hint & JsxDetectionHint . DoNotIncludeJsxWithEmptyArrayValue ) ;
111111 }
112- // StrictArray requires all elements to be JSX
112+ // Requires all elements to be JSX
113113 if ( hint & JsxDetectionHint . RequireAllArrayElementsToBeJsx ) {
114114 return node . elements . every ( ( n ) => isJsxLike ( code , n , hint ) ) ;
115115 }
116116 // Default: array is JSX-like if any element is JSX-like
117117 return node . elements . some ( ( n ) => isJsxLike ( code , n , hint ) ) ;
118118 }
119119 case AST . LogicalExpression : {
120- // StrictLogical requires both sides to be JSX
120+ // Requires both sides to be JSX
121121 if ( hint & JsxDetectionHint . RequireBothSidesOfLogicalExpressionToBeJsx ) {
122122 return isJsxLike ( code , node . left , hint ) && isJsxLike ( code , node . right , hint ) ;
123123 }
@@ -144,7 +144,7 @@ export function isJsxLike(
144144 return isJsxLike ( code , node . alternate , hint ) ;
145145 }
146146
147- // StrictConditional requires both branches to contain JSX
147+ // Requires both branches to contain JSX
148148 if ( hint & JsxDetectionHint . RequireBothBranchesOfConditionalExpressionToBeJsx ) {
149149 return leftHasJSX ( node ) && rightHasJSX ( node ) ;
150150 }
0 commit comments