We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 321f354 commit fcbff9aCopy full SHA for fcbff9a
lib/rules/jsx-wrap-multilines.js
@@ -11,7 +11,8 @@
11
var DEFAULTS = {
12
declaration: true,
13
assignment: true,
14
- return: true
+ return: true,
15
+ arrow: true
16
};
17
18
// ------------------------------------------------------------------------------
@@ -38,6 +39,9 @@ module.exports = {
38
39
},
40
return: {
41
type: 'boolean'
42
+ },
43
+ arrow: {
44
+ type: 'boolean'
45
}
46
47
additionalProperties: false
@@ -107,6 +111,14 @@ module.exports = {
107
111
if (isEnabled('return')) {
108
112
check(node.argument);
109
113
114
115
+
116
+ 'ArrowFunctionExpression:exit': function (node) {
117
+ var arrowBody = node.body;
118
119
+ if (isEnabled('arrow') && arrowBody.type !== 'BlockStatement') {
120
+ check(arrowBody);
121
+ }
110
122
123
124
0 commit comments