diff options
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r-- | lua/conform/formatters/biome-check.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/conform/formatters/biome-check.lua b/lua/conform/formatters/biome-check.lua new file mode 100644 index 0000000..1ac99e3 --- /dev/null +++ b/lua/conform/formatters/biome-check.lua @@ -0,0 +1,14 @@ +local util = require("conform.util") +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/biomejs/biome", + description = "A toolchain for web projects, aimed to provide functionalities to maintain them.", + }, + command = util.from_node_modules("biome"), + stdin = true, + args = { "check", "--apply-unsafe", "--stdin-file-path", "$FILENAME" }, + cwd = util.root_file({ + "biome.json", + }), +} |