Skip to content
This repository was archived by the owner on Jul 3, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Biome forEach false positive repro for issue #10799

Repro in ./index.ts

To install dependencies:

bun install

To repro:

bunx biome lint

Prints:

index.ts:5:9 lint/suspicious/useIterableCallbackReturn ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ✖ This callback passed to forEach() iterable method should not return a value.

    3 │ await pipe(
    4 │         Iterable.range(0, 2),
  > 5 │         Effect.forEach(
      │                ^^^^^^^
    6 │                 (num) =>
    7 │                         pipe(

  ℹ Either remove this return or remove the returned value.

     5 │        Effect.forEach(
     6 │                (num) =>
   > 7 │                        pipe(
       │                        ^^^^^
   > 8 │                                Effect.succeed(String.fromCharCode(65 + num)),
   > 9 │                                Effect.delay(`${num} seconds`),
  > 10 │                                Effect.tap(Console.log),
  > 11 │                        ),
       │                        ^
    12 │                { concurrency: "unbounded" },
    13 │        ),


Checked 3 files in 3ms. No fixes applied.
Found 1 error.

About

Biome Effect.forEach false positive repro

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages