Skip to content

Commit c8ee193

Browse files
committed
Avoid incldues
1 parent bda68ce commit c8ee193

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
@@ -61,7 +61,7 @@ module.exports = {
6161

6262
const isInlineElement = node => (
6363
node.type === 'JSXElement' &&
64-
INLINE_ELEMENTS.includes(elementName(node))
64+
INLINE_ELEMENTS.indexOf(elementName(node)) !== -1
6565
);
6666

6767
const TEXT_FOLLOWING_ELEMENT_PATTERN = /^\s*\n\s*\S/;

0 commit comments

Comments
 (0)