@@ -49,9 +49,9 @@ Examples of **incorrect** code for this rule with the `"always"` option:
4949
5050function foo (bar , baz ) {}
5151
52- var foo = function (bar , baz ) {};
52+ var qux = function (bar , baz ) {};
5353
54- var foo = (bar , baz ) => {};
54+ var qux = (bar , baz ) => {};
5555
5656foo (bar, baz);
5757```
@@ -70,11 +70,11 @@ function foo(
7070 baz
7171) {}
7272
73- var foo = function (
73+ var qux = function (
7474 bar , baz
7575) {};
7676
77- var foo = (
77+ var qux = (
7878 bar,
7979 baz
8080) => {};
@@ -99,11 +99,11 @@ function foo(
9999 baz
100100) {}
101101
102- var foo = function (
102+ var qux = function (
103103 bar , baz
104104) {};
105105
106- var foo = (
106+ var qux = (
107107 bar,
108108 baz
109109) => {};
@@ -125,12 +125,12 @@ Examples of **correct** code for this rule with the `"never"` option:
125125
126126function foo (bar , baz ) {}
127127
128- function foo (bar ,
128+ function qux (bar ,
129129 baz ) {}
130130
131- var foo = function (bar , baz ) {};
131+ var foobar = function (bar , baz ) {};
132132
133- var foo = (bar , baz ) => {};
133+ var foobar = (bar , baz ) => {};
134134
135135foo (bar, baz);
136136
@@ -151,11 +151,11 @@ function foo(bar,
151151 baz
152152) {}
153153
154- var foo = function (
154+ var qux = function (
155155 bar , baz
156156) {};
157157
158- var foo = (
158+ var qux = (
159159 bar,
160160 baz) => {};
161161
@@ -180,12 +180,12 @@ Examples of **correct** code for this rule with the default `"multiline"` option
180180
181181function foo (bar , baz ) {}
182182
183- var foo = function (
183+ var foobar = function (
184184 bar ,
185185 baz
186186) {};
187187
188- var foo = (bar , baz ) => {};
188+ var foobar = (bar , baz ) => {};
189189
190190foo (bar, baz, qux);
191191
@@ -213,11 +213,11 @@ function foo(bar,
213213 baz
214214) {}
215215
216- var foo = function (bar ,
216+ var qux = function (bar ,
217217 baz
218218) {};
219219
220- var foo = (
220+ var qux = (
221221 bar,
222222 baz) => {};
223223
@@ -243,9 +243,9 @@ Examples of **correct** code for this rule with the `"consistent"` option:
243243function foo (bar ,
244244 baz ) {}
245245
246- var foo = function (bar , baz ) {};
246+ var qux = function (bar , baz ) {};
247247
248- var foo = (
248+ var qux = (
249249 bar,
250250 baz
251251) => {};
@@ -274,11 +274,11 @@ function foo(bar,
274274 baz
275275) {}
276276
277- var foo = function (bar ,
277+ var foobar = function (bar ,
278278 baz
279279) {};
280280
281- var foo = (
281+ var foobar = (
282282 bar,
283283 baz) => {};
284284
@@ -306,9 +306,9 @@ function foo(
306306 baz
307307) {}
308308
309- var foo = function (bar , baz ) {};
309+ var qux = function (bar , baz ) {};
310310
311- var foo = (
311+ var qux = (
312312 bar
313313) => {};
314314
@@ -333,13 +333,13 @@ function foo(
333333 baz
334334) {}
335335
336- function foo (bar , baz , qux ) {}
336+ function foobar (bar , baz , qux ) {}
337337
338- var foo = function (
338+ var barbaz = function (
339339 bar , baz
340340) {};
341341
342- var foo = (bar,
342+ var barbaz = (bar,
343343 baz) => {};
344344
345345foo (bar,
@@ -357,13 +357,13 @@ Examples of **correct** code for this rule with the `{ "minItems": 3 }` option:
357357
358358function foo (bar , baz ) {}
359359
360- var foo = function (
360+ var foobar = function (
361361 bar ,
362362 baz ,
363363 qux
364364) {};
365365
366- var foo = (
366+ var foobar = (
367367 bar, baz, qux
368368) => {};
369369
0 commit comments