Skip to content

Commit 70c8f4f

Browse files
committed
Update rule docs
1 parent fcbff9a commit 70c8f4f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/rules/jsx-wrap-multilines.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Prevent missing parentheses around multiline JSX (jsx-wrap-multilines)
22

3-
Wrapping multiline JSX in parentheses can improve readability and/or convenience. It optionally takes a second parameter in the form of an object, containing places to apply the rule. By default, `"declaration"`, `"assignment"`, and `"return"` syntax is checked, but these can be explicitly disabled. Any syntax type missing in the object will follow the default behavior (become enabled).
3+
Wrapping multiline JSX in parentheses can improve readability and/or convenience. It optionally takes a second parameter in the form of an object, containing places to apply the rule. By default, `"declaration"`, `"assignment"`, `"return"`, and `"arrow"` syntax is checked, but these can be explicitly disabled. Any syntax type missing in the object will follow the default behavior (become enabled).
44

55
**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line.
66

@@ -43,4 +43,9 @@ hello = <div>
4343
var world = <div>
4444
<p>World</p>
4545
</div>
46+
47+
// When [1, {arrow: false}]
48+
var hello = () => <div>
49+
<p>World</p>
50+
</div>
4651
```

0 commit comments

Comments
 (0)