Skip to content

Commit

Permalink
feat: add ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
shurizzle committed Oct 13, 2023
1 parent f883e90 commit 5ce1050
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/conform/formatters/ktlint.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://ktlint.github.io/",
description = "An anti-bikeshedding Kotlin linter with built-in formatter.",
},
command = "ktlint",
args = { "--format", "--stdin", "**/*.kt", "**/*.kts" },
stdin = true,
}

0 comments on commit 5ce1050

Please sign in to comment.