Skip to content

Commit

Permalink
feat: biome organize imports (#599)
Browse files Browse the repository at this point in the history
* feat: biome organize imports

* fix: explicitly enable only the import organizer

* lint: trailing comma

---------

Co-authored-by: Steven Arcangeli <[email protected]>
  • Loading branch information
igorlfs and stevearc authored Dec 24, 2024
1 parent 339b3e4 commit 06804af
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lua/conform/formatters/biome-organize-imports.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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",
"--formatter-enabled=false",
"--linter-enabled=false",
"--organize-imports-enabled=true",
"--stdin-file-path",
"$FILENAME",
},
cwd = util.root_file({
"biome.json",
"biome.jsonc",
}),
}

0 comments on commit 06804af

Please sign in to comment.