Skip to content

Commit 2899e57

Browse files
committed
jsx-wrap-multilines: support shorthand fragments
1 parent bace62c commit 2899e57

File tree

2 files changed

+427
-1
lines changed

2 files changed

+427
-1
lines changed

lib/rules/jsx-wrap-multilines.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
const has = require('has');
88
const docsUrl = require('../util/docsUrl');
9+
const jsxUtil = require('../util/jsx');
910

1011
// ------------------------------------------------------------------------------
1112
// Constants
@@ -122,7 +123,7 @@ module.exports = {
122123
}
123124

124125
function check(node, type) {
125-
if (!node || node.type !== 'JSXElement') {
126+
if (!node || !jsxUtil.isJSX(node)) {
126127
return;
127128
}
128129

0 commit comments

Comments
 (0)