Skip to content

Commit

Permalink
feat: add 'JavaScript Standard Style' formatter (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluz71 authored Sep 28, 2023
1 parent 368fe92 commit 971fa7f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lua/conform/formatters/standardjs.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local util = require("conform.util")

---@type conform.FileFormatterConfig
return {
meta = {
url = "https://standardjs.com",
description = "JavaScript Standard style guide, linter, and formatter.",
},
command = util.from_node_modules("standard"),
args = { "--fix", "--stdin", "$FILENAME" },
}

0 comments on commit 971fa7f

Please sign in to comment.