Skip to content

Commit a7a7cab

Browse files
aifreedomljharb
authored andcommitted
[guide] Add an anchor for rule 13.7
1 parent 3c3074e commit a7a7cab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,7 @@ Other Style Guides
17011701
const truthyCount = array.filter(Boolean).length;
17021702
```
17031703
1704+
<a name="variables--linebreak"></a>
17041705
- [13.7](#variables--linebreak) Avoid linebreaks before or after `=` in an assignment. If your assignment violates [`max-len`](https://eslint.org/docs/rules/max-len.html), surround the value in parens. eslint [`operator-linebreak`](https://eslint.org/docs/rules/operator-linebreak.html).
17051706
17061707
> Why? Linebreaks surrounding `=` can obfuscate the value of an assignment.

0 commit comments

Comments
 (0)