You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/early-exit.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ for (const x of xs) {
56
56
}
57
57
```
58
58
59
-
An options object as in `"early-exit": [true, { "max-length": 4 }}` may be provided to configure what makes a block count as "large". The default is 2 lines.
59
+
An options object as in `"early-exit": [true, { "max-length": 4 }]` may be provided to configure what makes a block count as "large". The default is 2 lines.
60
60
61
61
If you set `"max-length"` to `0`, the rule will always suggest an early return, regardless of the line count. For example:
0 commit comments