Skip to content

Commit eb039b8

Browse files
author
Eugene Alanev
authored
Add new line before/after parentheses when wrap
1 parent b9bb564 commit eb039b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/jsx-wrap-multilines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = {
7676
node: node,
7777
message: 'Missing parentheses around multilines JSX',
7878
fix: function(fixer) {
79-
return fixer.replaceText(node, `(${sourceCode.getText(node)})`);
79+
return fixer.replaceText(node, `(\n${sourceCode.getText(node)}\n)`);
8080
}
8181
});
8282
}

0 commit comments

Comments
 (0)