Skip to content

Commit 005bd3b

Browse files
FLchsstevearc
andauthored
feat: add Oxlint autofix (#819)
* feat: add Oxlint autofix * doc: remove entry from README to fix merge conflict * Update Oxlint description and command --------- Co-authored-by: Steven Arcangeli <[email protected]>
1 parent a06ffc8 commit 005bd3b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lua/conform/formatters/oxlint.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
local util = require("conform.util")
2+
3+
---@type conform.FileFormatterConfig
4+
return {
5+
meta = {
6+
url = "https://github.com/oxc-project/oxc",
7+
description = "An oxidized replacement for ESLint that fixes lint errors.",
8+
},
9+
command = util.from_node_modules("oxlint"),
10+
args = { "--fix", "$FILENAME" },
11+
stdin = false,
12+
}

0 commit comments

Comments
 (0)