Skip to content

Commit

Permalink
Update rule docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ColCh committed Aug 29, 2016
1 parent fcbff9a commit 70c8f4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/rules/jsx-wrap-multilines.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prevent missing parentheses around multiline JSX (jsx-wrap-multilines)

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).
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).

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

Expand Down Expand Up @@ -43,4 +43,9 @@ hello = <div>
var world = <div>
<p>World</p>
</div>

// When [1, {arrow: false}]
var hello = () => <div>
<p>World</p>
</div>
```

0 comments on commit 70c8f4f

Please sign in to comment.