Skip to content

Commit 04f3b9f

Browse files
author
Eugene Alanev
authored
Add new nodes for wrap
Add ConditionalExpression, LogicalExpression and JSXAttribute
1 parent eb039b8 commit 04f3b9f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/rules/jsx-wrap-multilines.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,21 @@ module.exports = {
133133
check(arrowBody);
134134
}
135135
}
136+
137+
ConditionalExpression: function(node) {
138+
check(node.consequent);
139+
check(node.alternate);
140+
},
141+
142+
LogicalExpression: function(node) {
143+
check(node.right);
144+
},
145+
146+
JSXAttribute: function (node) {
147+
if (node.value && node.value.type === 'JSXExpressionContainer') {
148+
check(node.value.expression);
149+
}
150+
}
136151
};
137152
}
138153
};

0 commit comments

Comments
 (0)