Skip to content

Commit

Permalink
[guide] Add an anchor for rule 13.7
Browse files Browse the repository at this point in the history
  • Loading branch information
aifreedom authored and ljharb committed Feb 21, 2018
1 parent 3c3074e commit a7a7cab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,7 @@ Other Style Guides
const truthyCount = array.filter(Boolean).length;
```
<a name="variables--linebreak"></a>
- [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).
> Why? Linebreaks surrounding `=` can obfuscate the value of an assignment.
Expand Down

0 comments on commit a7a7cab

Please sign in to comment.