@@ -113,7 +113,7 @@ Examples of **correct** code for this rule with the `"as-needed"` option:
113113``` js
114114/* eslint func-names: ["error", "as-needed"]*/
115115
116- var bar = function () {};
116+ const bar = function () {};
117117
118118const cat = {
119119 meow : function () {}
@@ -192,7 +192,7 @@ Examples of **correct** code for this rule with the `"always", { "generators": "
192192` ` ` js
193193/* eslint func-names: ["error", "always", { "generators": "as-needed" }]*/
194194
195- var foo = function * () {};
195+ const foo = function * () {};
196196` ` `
197197
198198:::
@@ -204,7 +204,7 @@ Examples of **incorrect** code for this rule with the `"always", { "generators":
204204` ` ` js
205205/* eslint func-names: ["error", "always", { "generators": "never" }]*/
206206
207- var foo = bar (function * baz () {});
207+ const foo = bar (function * baz () {});
208208` ` `
209209
210210:::
@@ -216,7 +216,7 @@ Examples of **correct** code for this rule with the `"always", { "generators": "
216216` ` ` js
217217/* eslint func-names: ["error", "always", { "generators": "never" }]*/
218218
219- var foo = bar (function * () {});
219+ const foo = bar (function * () {});
220220` ` `
221221
222222:::
@@ -228,7 +228,7 @@ Examples of **incorrect** code for this rule with the `"as-needed", { "generator
228228` ` ` js
229229/* eslint func-names: ["error", "as-needed", { "generators": "never" }]*/
230230
231- var foo = bar (function * baz () {});
231+ const foo = bar (function * baz () {});
232232` ` `
233233
234234:::
@@ -240,7 +240,7 @@ Examples of **correct** code for this rule with the `"as-needed", { "generators"
240240` ` ` js
241241/* eslint func-names: ["error", "as-needed", { "generators": "never" }]*/
242242
243- var foo = bar (function * () {});
243+ const foo = bar (function * () {});
244244` ` `
245245
246246:::
@@ -252,7 +252,7 @@ Examples of **incorrect** code for this rule with the `"never", { "generators":
252252` ` ` js
253253/* eslint func-names: ["error", "never", { "generators": "always" }]*/
254254
255- var foo = bar (function * () {});
255+ const foo = bar (function * () {});
256256` ` `
257257
258258:::
@@ -264,7 +264,7 @@ Examples of **correct** code for this rule with the `"never", { "generators": "a
264264` ` ` js
265265/* eslint func-names: ["error", "never", { "generators": "always" }]*/
266266
267- var foo = bar (function * baz () {});
267+ const foo = bar (function * baz () {});
268268` ` `
269269
270270:::
0 commit comments