Skip to content

Commit

Permalink
Fix: Max depth example in documentation updated (fixes eslint#11991)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh419 committed Oct 2, 2019
1 parent 20ba14d commit 80d30d7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/rules/max-depth.md
Expand Up @@ -24,14 +24,12 @@ Examples of **incorrect** code for this rule with the default `{ "max": 4 }` opt

function foo() {
for (;;) { // Nested 1 deep
let val = () => (param) => { // Nested 2 deep
if (true) { // Nested 2 deep
if (true) { // Nested 3 deep
if (true) { // Nested 4 deep
if (true) { // Nested 5 deep
}
}
}
};
}
}
}
```
Expand Down

0 comments on commit 80d30d7

Please sign in to comment.