aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/biome.lua
diff options
context:
space:
mode:
authorpseudometa <73286100+chrisgrieser@users.noreply.github.com>2023-11-27 21:27:44 +0100
committerGitHub <noreply@github.com>2023-11-27 12:27:44 -0800
commiteddd6431370814caacec1d1e3c7d6d95d41b133d (patch)
tree27cbf100fdcc8f7e38673b83e827e1336d79b8eb /lua/conform/formatters/biome.lua
parentd763ad5be9ed39e75945130abc294e997e035a16 (diff)
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.
Diffstat (limited to 'lua/conform/formatters/biome.lua')
-rw-r--r--lua/conform/formatters/biome.lua8
1 files changed, 2 insertions, 6 deletions
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" },
}