---
source: crates/oxc_linter/src/tester.rs
expression: array_callback_return
---
  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.from"
   ╭─[array_callback_return.tsx:1:26]
 1 │ Array.from(x, function() {})
   ·                          ──
   ╰────
  help: Array method "Array.from" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.from"
   ╭─[array_callback_return.tsx:1:30]
 1 │ Array.from(x, function foo() {})
   ·                              ──
   ╰────
  help: Array method "Array.from" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.every(function() {})
   ·                      ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:26]
 1 │ foo.every(function foo() {})
   ·                          ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:23]
 1 │ foo.filter(function() {})
   ·                       ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:27]
 1 │ foo.filter(function foo() {})
   ·                           ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.find"
   ╭─[array_callback_return.tsx:1:21]
 1 │ foo.find(function() {})
   ·                     ──
   ╰────
  help: Array method "Array.prototype.find" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.find"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.find(function foo() {})
   ·                         ──
   ╰────
  help: Array method "Array.prototype.find" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.findLast"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.findLast(function() {})
   ·                         ──
   ╰────
  help: Array method "Array.prototype.findLast" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.findLast"
   ╭─[array_callback_return.tsx:1:29]
 1 │ foo.findLast(function foo() {})
   ·                             ──
   ╰────
  help: Array method "Array.prototype.findLast" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.findIndex"
   ╭─[array_callback_return.tsx:1:26]
 1 │ foo.findIndex(function() {})
   ·                          ──
   ╰────
  help: Array method "Array.prototype.findIndex" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.findIndex"
   ╭─[array_callback_return.tsx:1:30]
 1 │ foo.findIndex(function foo() {})
   ·                              ──
   ╰────
  help: Array method "Array.prototype.findIndex" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.findLastIndex"
   ╭─[array_callback_return.tsx:1:30]
 1 │ foo.findLastIndex(function() {})
   ·                              ──
   ╰────
  help: Array method "Array.prototype.findLastIndex" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.findLastIndex"
   ╭─[array_callback_return.tsx:1:34]
 1 │ foo.findLastIndex(function foo() {})
   ·                                  ──
   ╰────
  help: Array method "Array.prototype.findLastIndex" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.flatMap"
   ╭─[array_callback_return.tsx:1:24]
 1 │ foo.flatMap(function() {})
   ·                        ──
   ╰────
  help: Array method "Array.prototype.flatMap" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.flatMap"
   ╭─[array_callback_return.tsx:1:28]
 1 │ foo.flatMap(function foo() {})
   ·                            ──
   ╰────
  help: Array method "Array.prototype.flatMap" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.map"
   ╭─[array_callback_return.tsx:1:20]
 1 │ foo.map(function() {})
   ·                    ──
   ╰────
  help: Array method "Array.prototype.map" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.map"
   ╭─[array_callback_return.tsx:1:24]
 1 │ foo.map(function foo() {})
   ·                        ──
   ╰────
  help: Array method "Array.prototype.map" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.reduce"
   ╭─[array_callback_return.tsx:1:23]
 1 │ foo.reduce(function() {})
   ·                       ──
   ╰────
  help: Array method "Array.prototype.reduce" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.reduce"
   ╭─[array_callback_return.tsx:1:27]
 1 │ foo.reduce(function foo() {})
   ·                           ──
   ╰────
  help: Array method "Array.prototype.reduce" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.reduceRight"
   ╭─[array_callback_return.tsx:1:28]
 1 │ foo.reduceRight(function() {})
   ·                            ──
   ╰────
  help: Array method "Array.prototype.reduceRight" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.reduceRight"
   ╭─[array_callback_return.tsx:1:32]
 1 │ foo.reduceRight(function foo() {})
   ·                                ──
   ╰────
  help: Array method "Array.prototype.reduceRight" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.some"
   ╭─[array_callback_return.tsx:1:21]
 1 │ foo.some(function() {})
   ·                     ──
   ╰────
  help: Array method "Array.prototype.some" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.some"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.some(function foo() {})
   ·                         ──
   ╰────
  help: Array method "Array.prototype.some" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.sort"
   ╭─[array_callback_return.tsx:1:21]
 1 │ foo.sort(function() {})
   ·                     ──
   ╰────
  help: Array method "Array.prototype.sort" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.sort"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.sort(function foo() {})
   ·                         ──
   ╰────
  help: Array method "Array.prototype.sort" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.toSorted"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.toSorted(function() {})
   ·                         ──
   ╰────
  help: Array method "Array.prototype.toSorted" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.toSorted"
   ╭─[array_callback_return.tsx:1:29]
 1 │ foo.toSorted(function foo() {})
   ·                             ──
   ╰────
  help: Array method "Array.prototype.toSorted" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:30]
 1 │ foo.bar.baz.every(function() {})
   ·                              ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:34]
 1 │ foo.bar.baz.every(function foo() {})
   ·                                  ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo["every"](function() {})
   ·                         ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:29]
 1 │ foo["every"](function foo() {})
   ·                             ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo[`every`](function() {})
   ·                         ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:29]
 1 │ foo[`every`](function foo() {})
   ·                             ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:17]
 1 │ foo.every(() => {})
   ·                 ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.every(function() { if (a) return true; })
   ·                      ───────────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.every(function cb() { if (a) return true; })
   ·                         ───────────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.every(function() { switch (a) { case 0: break; default: return true; } })
   ·                      ───────────────────────────────────────────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:26]
 1 │ foo.every(function foo() { switch (a) { case 0: break; default: return true; } })
   ·                          ───────────────────────────────────────────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.every(function() { try { bar(); } catch (err) { return true; } })
   ·                      ───────────────────────────────────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:26]
 1 │ foo.every(function foo() { try { bar(); } catch (err) { return true; } })
   ·                          ───────────────────────────────────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.every(function() { return; })
   ·                      ───────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:26]
 1 │ foo.every(function foo() { return; })
   ·                          ───────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.every(function() { if (a) return; })
   ·                      ──────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:26]
 1 │ foo.every(function foo() { if (a) return; })
   ·                          ──────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.every(function() { if (a) return; else return; })
   ·                      ───────────────────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:26]
 1 │ foo.every(function foo() { if (a) return; else return; })
   ·                          ───────────────────────────────
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:28]
 1 │ foo.every(cb || function() {})
   ·                            ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:32]
 1 │ foo.every(cb || function foo() {})
   ·                                ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:26]
 1 │ foo.every(a ? function() {} : function() {})
   ·                          ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:42]
 1 │ foo.every(a ? function() {} : function() {})
   ·                                          ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:30]
 1 │ foo.every(a ? function foo() {} : function bar() {})
   ·                              ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:50]
 1 │ foo.every(a ? function foo() {} : function bar() {})
   ·                                                  ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:41]
 1 │ foo.every(function(){ return function() {}; }())
   ·                                         ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:45]
 1 │ foo.every(function(){ return function foo() {}; }())
   ·                                             ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:17]
 1 │ foo.every(() => {})
   ·                 ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:17]
 1 │ foo.every(() => {})
   ·                 ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.from"
   ╭─[array_callback_return.tsx:1:26]
 1 │ Array.from(x, function() {})
   ·                          ──
   ╰────
  help: Array method "Array.from" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.every(function() {})
   ·                      ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:27]
 1 │ foo.filter(function foo() {})
   ·                           ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.find"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.find(function foo() {})
   ·                         ──
   ╰────
  help: Array method "Array.prototype.find" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.map"
   ╭─[array_callback_return.tsx:1:20]
 1 │ foo.map(function() {})
   ·                    ──
   ╰────
  help: Array method "Array.prototype.map" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.reduce"
   ╭─[array_callback_return.tsx:1:23]
 1 │ foo.reduce(function() {})
   ·                       ──
   ╰────
  help: Array method "Array.prototype.reduce" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.reduceRight"
   ╭─[array_callback_return.tsx:1:28]
 1 │ foo.reduceRight(function() {})
   ·                            ──
   ╰────
  help: Array method "Array.prototype.reduceRight" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:34]
 1 │ foo.bar.baz.every(function foo() {})
   ·                                  ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:28]
 1 │ foo.every(cb || function() {})
   ·                            ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.sort"
   ╭─[array_callback_return.tsx:1:35]
 1 │ ["foo","bar"].sort(function foo() {})
   ·                                   ──
   ╰────
  help: Array method "Array.prototype.sort" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.toSorted"
   ╭─[array_callback_return.tsx:1:39]
 1 │ ["foo","bar"].toSorted(function foo() {})
   ·                                       ──
   ╰────
  help: Array method "Array.prototype.toSorted" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:18]
 1 │ foo.forEach(x => x)
   ·                  ─
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.forEach(function(x) { if (a == b) {return x;}})
   ·                         ──────────────────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:29]
 1 │ foo.forEach(function bar(x) { return x;})
   ·                             ────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:18]
 1 │ foo.forEach(x => x)
   ·                  ─
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:20]
 1 │ foo.forEach(val => y += val)
   ·                    ────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:28]
 1 │ ["foo","bar"].forEach(x => ++x)
   ·                            ───
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:24]
 1 │ foo.bar().forEach(x => x === y)
   ·                        ───────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:43]
 1 │ foo.forEach(function() {return function() { if (a == b) { return a; }}}())
   ·                                           ────────────────────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.forEach(function(x) { if (a == b) {return x;}})
   ·                         ──────────────────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:25]
 1 │ foo.forEach(function(x) { if (a == b) {return undefined;}})
   ·                         ──────────────────────────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:29]
 1 │ foo.forEach(function bar(x) { return x;})
   ·                             ────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:29]
 1 │ foo.forEach(function bar(x) { return x;})
   ·                             ────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:35]
 1 │ foo.bar().forEach(function bar(x) { return x;})
   ·                                   ────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:39]
 1 │ ["foo","bar"].forEach(function bar(x) { return x;})
   ·                                       ────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:20]
 1 │ foo.forEach((x) => { return x;})
   ·                    ────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.from"
   ╭─[array_callback_return.tsx:1:26]
 1 │ Array.from(x, function() {})
   ·                          ──
   ╰────
  help: Array method "Array.from" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.every(function() {})
   ·                      ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:27]
 1 │ foo.filter(function foo() {})
   ·                           ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:27]
 1 │ foo.filter(function foo() { return; })
   ·                           ───────────
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.every"
   ╭─[array_callback_return.tsx:1:28]
 1 │ foo.every(cb || function() {})
   ·                            ──
   ╰────
  help: Array method "Array.prototype.every" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:19]
 1 │ foo.filter(bar => { baz(); } )
   ·                   ──────────
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:2:7]
 1 │ foo.filter(
 2 │ () => {} )
   ·       ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:29]
 1 │ foo.filter(bar || ((baz) => {}) )
   ·                             ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:19]
 1 │ foo.filter(bar => { return; })
   ·                   ───────────
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.from"
   ╭─[array_callback_return.tsx:1:24]
 1 │ Array.from(foo, bar => { bar })
   ·                        ───────
   ╰────
  help: Array method "Array.from" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:20]
 1 │ foo.forEach(bar => bar)
   ·                    ───
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:44]
 1 │ foo.forEach((function () { return (bar) => bar; })())
   ·                                            ───
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:2:16]
 1 │ foo.forEach((() => {
 2 │  return bar => bar; })())
   ·                ───
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.forEach((bar) => { if (bar) { return; } else { return bar ; } })
   ·                      ──────────────────────────────────────────────
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:22]
 1 │ foo.filter(function(){})
   ·                      ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:23]
 1 │ foo.filter(function (){})
   ·                       ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:2:3]
 1 │ foo.filter(function
 2 │ (){})
   ·   ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:26]
 1 │ foo.filter(function bar(){})
   ·                          ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:28]
 1 │ foo.filter(function bar  (){})
   ·                            ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:2:8]
 1 │ foo.filter(function
 2 │  bar() {})
   ·        ──
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.from"
   ╭─[array_callback_return.tsx:1:31]
 1 │ Array.from(foo, function bar(){})
   ·                               ──
   ╰────
  help: Array method "Array.from" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.from"
   ╭─[array_callback_return.tsx:1:34]
 1 │ Array.from(foo, bar ? function (){} : baz)
   ·                                  ──
   ╰────
  help: Array method "Array.from" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:27]
 1 │ ╭─▶ foo.filter(function bar() { return 
 2 │ ╰─▶  })
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Unexpected return for array method "Array.prototype.forEach"
   ╭─[array_callback_return.tsx:1:25]
 1 │ ╭─▶ foo.forEach(function () { 
 2 │ │   if (baz) return bar
 3 │ │   else return
 4 │ ╰─▶  })
   ╰────
  help: Array method "Array.prototype.forEach" expects no useless return from the function

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:19]
 1 │ foo?.filter(() => { console.log('hello') })
   ·                   ────────────────────────
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:21]
 1 │ (foo?.filter)(() => { console.log('hello') })
   ·                     ────────────────────────
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.from"
   ╭─[array_callback_return.tsx:1:23]
 1 │ Array?.from([], () => { console.log('hello') })
   ·                       ────────────────────────
   ╰────
  help: Array method "Array.from" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.from"
   ╭─[array_callback_return.tsx:1:25]
 1 │ (Array?.from)([], () => { console.log('hello') })
   ·                         ────────────────────────
   ╰────
  help: Array method "Array.from" needs to have valid return on all code paths

  ⚠ eslint(array-callback-return): Missing return on some path for array method "Array.prototype.filter"
   ╭─[array_callback_return.tsx:1:40]
 1 │ foo?.filter((function() { return () => { console.log('hello') } })?.())
   ·                                        ────────────────────────
   ╰────
  help: Array method "Array.prototype.filter" needs to have valid return on all code paths
