From eddd6431370814caacec1d1e3c7d6d95d41b133d Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Mon, 27 Nov 2023 21:27:44 +0100 Subject: fix(biome): perform formatting over stdin (#220) 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. --- lua/conform/formatters/biome.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lua/conform/formatters/biome.lua') diff --git a/lua/conform/formatters/biome.lua b/lua/conform/formatters/biome.lua index 3fb0c08..f6d6ae8 100644 --- a/lua/conform/formatters/biome.lua +++ b/lua/conform/formatters/biome.lua @@ -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" }, } -- cgit v1.2.3-70-g09d2