Skip to content

Commit

Permalink
fix(biome): perform formatting over stdin (#220)
Browse files Browse the repository at this point in the history
With the release of v1.4.0, biome now supports the arguments needed for formatting via stdin/stdout. If you are using an older version of biome, you can override the formatter configuration to use the previous settings.
  • Loading branch information
chrisgrieser committed Nov 27, 2023
1 parent d763ad5 commit eddd643
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lua/conform/formatters/biome.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ return {
description = "A toolchain for web projects, aimed to provide functionalities to maintain them.",
},
command = "biome",

-- pending this bug, do not use stdin: https://github.com/biomejs/biome/issues/455
stdin = false,
args = { "format", "--write", "$FILENAME" },
-- stdin = true,
-- args = { "format", "--stdin-file-path", "$FILENAME" },
stdin = true,
args = { "format", "--stdin-file-path", "$FILENAME" },
}

0 comments on commit eddd643

Please sign in to comment.