--- source: crates/biome_formatter_test/src/snapshot_builder.rs info: js/comments-pipeline-own-line/pipeline_own_line.js --- # Input ```js function pipeline() { 0 // Comment |> x } bifornCringerMoshedPerplexSawder( askTrovenaBeenaDependsRowans, glimseGlyphsHazardNoopsTieTie, averredBathersBoxroomBuggyNurl ) // comment |> kochabCooieGameOnOboleUnweave |> glimseGlyphsHazardNoopsTieTie; bifornCringerMoshedPerplexSawder( askTrovenaBeenaDependsRowans, glimseGlyphsHazardNoopsTieTie ) |> foo // comment |> kochabCooieGameOnOboleUnweave |> glimseGlyphsHazardNoopsTieTie; bifornCringerMoshedPerplexSawder[ askTrovenaBeenaDependsRowans + glimseGlyphsHazardNoopsTieTie + averredBathersBoxroomBuggyNurl ] // comment |> kochabCooieGameOnOboleUnweave |> glimseGlyphsHazardNoopsTieTie; bifornCringerMoshedPerplexSawder[ askTrovenaBeenaDependsRowans + glimseGlyphsHazardNoopsTieTie + averredBathersBoxroomBuggyNurl ] |> foo // comment |> kochabCooieGameOnOboleUnweave |> glimseGlyphsHazardNoopsTieTie; ``` # Prettier differences ```diff --- Prettier +++ Biome @@ -1,38 +1,38 @@ function pipeline() { - 0 |> - // Comment - x; + 0 + // Comment + |> x } bifornCringerMoshedPerplexSawder( askTrovenaBeenaDependsRowans, glimseGlyphsHazardNoopsTieTie, - averredBathersBoxroomBuggyNurl, + averredBathersBoxroomBuggyNurl ) // comment - |> kochabCooieGameOnOboleUnweave - |> glimseGlyphsHazardNoopsTieTie; +|> kochabCooieGameOnOboleUnweave +|> glimseGlyphsHazardNoopsTieTie; bifornCringerMoshedPerplexSawder( askTrovenaBeenaDependsRowans, - glimseGlyphsHazardNoopsTieTie, + glimseGlyphsHazardNoopsTieTie ) - |> foo // comment - |> kochabCooieGameOnOboleUnweave - |> glimseGlyphsHazardNoopsTieTie; +|> foo // comment +|> kochabCooieGameOnOboleUnweave +|> glimseGlyphsHazardNoopsTieTie; bifornCringerMoshedPerplexSawder[ askTrovenaBeenaDependsRowans + - glimseGlyphsHazardNoopsTieTie + - averredBathersBoxroomBuggyNurl + glimseGlyphsHazardNoopsTieTie + + averredBathersBoxroomBuggyNurl ] // comment - |> kochabCooieGameOnOboleUnweave - |> glimseGlyphsHazardNoopsTieTie; +|> kochabCooieGameOnOboleUnweave +|> glimseGlyphsHazardNoopsTieTie; bifornCringerMoshedPerplexSawder[ askTrovenaBeenaDependsRowans + - glimseGlyphsHazardNoopsTieTie + - averredBathersBoxroomBuggyNurl + glimseGlyphsHazardNoopsTieTie + + averredBathersBoxroomBuggyNurl ] - |> foo // comment - |> kochabCooieGameOnOboleUnweave - |> glimseGlyphsHazardNoopsTieTie; +|> foo // comment +|> kochabCooieGameOnOboleUnweave +|> glimseGlyphsHazardNoopsTieTie; ``` # Output ```js function pipeline() { 0 // Comment |> x } bifornCringerMoshedPerplexSawder( askTrovenaBeenaDependsRowans, glimseGlyphsHazardNoopsTieTie, averredBathersBoxroomBuggyNurl ) // comment |> kochabCooieGameOnOboleUnweave |> glimseGlyphsHazardNoopsTieTie; bifornCringerMoshedPerplexSawder( askTrovenaBeenaDependsRowans, glimseGlyphsHazardNoopsTieTie ) |> foo // comment |> kochabCooieGameOnOboleUnweave |> glimseGlyphsHazardNoopsTieTie; bifornCringerMoshedPerplexSawder[ askTrovenaBeenaDependsRowans + glimseGlyphsHazardNoopsTieTie + averredBathersBoxroomBuggyNurl ] // comment |> kochabCooieGameOnOboleUnweave |> glimseGlyphsHazardNoopsTieTie; bifornCringerMoshedPerplexSawder[ askTrovenaBeenaDependsRowans + glimseGlyphsHazardNoopsTieTie + averredBathersBoxroomBuggyNurl ] |> foo // comment |> kochabCooieGameOnOboleUnweave |> glimseGlyphsHazardNoopsTieTie; ``` # Errors ``` pipeline_own_line.js:4:3 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 2 │ 0 3 │ // Comment > 4 │ |> x │ ^ 5 │ } 6 │ i This operator requires a left hand side value pipeline_own_line.js:12:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 10 │ averredBathersBoxroomBuggyNurl 11 │ ) // comment > 12 │ |> kochabCooieGameOnOboleUnweave │ ^ 13 │ |> glimseGlyphsHazardNoopsTieTie; 14 │ i This operator requires a left hand side value pipeline_own_line.js:13:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 11 │ ) // comment 12 │ |> kochabCooieGameOnOboleUnweave > 13 │ |> glimseGlyphsHazardNoopsTieTie; │ ^ 14 │ 15 │ bifornCringerMoshedPerplexSawder( i This operator requires a left hand side value pipeline_own_line.js:19:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 17 │ glimseGlyphsHazardNoopsTieTie 18 │ ) > 19 │ |> foo // comment │ ^ 20 │ |> kochabCooieGameOnOboleUnweave 21 │ |> glimseGlyphsHazardNoopsTieTie; i This operator requires a left hand side value pipeline_own_line.js:20:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 18 │ ) 19 │ |> foo // comment > 20 │ |> kochabCooieGameOnOboleUnweave │ ^ 21 │ |> glimseGlyphsHazardNoopsTieTie; 22 │ i This operator requires a left hand side value pipeline_own_line.js:21:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 19 │ |> foo // comment 20 │ |> kochabCooieGameOnOboleUnweave > 21 │ |> glimseGlyphsHazardNoopsTieTie; │ ^ 22 │ 23 │ bifornCringerMoshedPerplexSawder[ i This operator requires a left hand side value pipeline_own_line.js:28:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 26 │ averredBathersBoxroomBuggyNurl 27 │ ] // comment > 28 │ |> kochabCooieGameOnOboleUnweave │ ^ 29 │ |> glimseGlyphsHazardNoopsTieTie; 30 │ i This operator requires a left hand side value pipeline_own_line.js:29:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 27 │ ] // comment 28 │ |> kochabCooieGameOnOboleUnweave > 29 │ |> glimseGlyphsHazardNoopsTieTie; │ ^ 30 │ 31 │ bifornCringerMoshedPerplexSawder[ i This operator requires a left hand side value pipeline_own_line.js:36:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 34 │ averredBathersBoxroomBuggyNurl 35 │ ] > 36 │ |> foo // comment │ ^ 37 │ |> kochabCooieGameOnOboleUnweave 38 │ |> glimseGlyphsHazardNoopsTieTie; i This operator requires a left hand side value pipeline_own_line.js:37:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 35 │ ] 36 │ |> foo // comment > 37 │ |> kochabCooieGameOnOboleUnweave │ ^ 38 │ |> glimseGlyphsHazardNoopsTieTie; 39 │ i This operator requires a left hand side value pipeline_own_line.js:38:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Expected an expression for the left hand side of the `>` operator. 36 │ |> foo // comment 37 │ |> kochabCooieGameOnOboleUnweave > 38 │ |> glimseGlyphsHazardNoopsTieTie; │ ^ 39 │ i This operator requires a left hand side value ```