We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 555cbf3 commit eb29996Copy full SHA for eb29996
1 file changed
docs/rules/no-sequences.md
@@ -39,6 +39,8 @@ switch (val = foo(), val) {}
39
while (val = foo(), val < 42);
40
41
with (doSomething(), val) {}
42
+
43
+const foo = (val) => (console.log('bar'), val);
44
```
45
46
Examples of **correct** code for this rule:
@@ -61,6 +63,8 @@ switch ((val = foo(), val)) {}
61
63
while ((val = foo(), val < 42));
62
64
65
with ((doSomething(), val)) {}
66
67
+const foo = (val) => ((console.log('bar'), val));
68
69
70
## Options
@@ -91,6 +95,8 @@ switch ((val = foo(), val)) {}
91
95
92
96
93
97
98
99
94
100
101
102
Examples of **correct** code for this rule with the `{ "allowInParentheses": false }` option:
0 commit comments