Skip to content

Commit 3762258

Browse files
committed
Add JSXText support to jsx-child-element-spacing
1 parent e6e8955 commit 3762258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/jsx-child-element-spacing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module.exports = {
7979
if (
8080
(lastChild || nextChild) &&
8181
(!lastChild || isInlineElement(lastChild)) &&
82-
(child && child.type === 'Literal') &&
82+
(child && (child.type === 'Literal' || child.type === 'JSXText')) &&
8383
(!nextChild || isInlineElement(nextChild)) &&
8484
true
8585
) {

0 commit comments

Comments
 (0)