aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/biome-check.lua
blob: 862923a066b839e1278993079c3975df45f4aeb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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", "--write", "--stdin-file-path", "$FILENAME" },
  cwd = util.root_file({
    "biome.json",
    "biome.jsonc",
  }),
}