File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ Examples of **incorrect** code for this rule with the default `{ "max": 4 }` opt
24
24
25
25
function foo () {
26
26
for (;;) { // Nested 1 deep
27
- let val = () => ( param ) => { // Nested 2 deep
27
+ while ( true ) { // Nested 2 deep
28
28
if (true ) { // Nested 3 deep
29
29
if (true ) { // Nested 4 deep
30
30
if (true ) { // Nested 5 deep
31
31
}
32
32
}
33
33
}
34
- };
34
+ }
35
35
}
36
36
}
37
37
```
@@ -44,12 +44,12 @@ Examples of **correct** code for this rule with the default `{ "max": 4 }` optio
44
44
45
45
function foo () {
46
46
for (;;) { // Nested 1 deep
47
- let val = () => ( param ) => { // Nested 2 deep
48
- if (true ) { // Nested 3 deep
47
+ while ( true ) { // Nested 2 deep
48
+ if (true ) { // Nested 3 deep
49
49
if (true ) { // Nested 4 deep
50
50
}
51
51
}
52
- };
52
+ }
53
53
}
54
54
}
55
55
```
You can’t perform that action at this time.
0 commit comments