Skip to content

Commit

Permalink
feat: add fixjson (#126)
Browse files Browse the repository at this point in the history
Co-authored-by: Magnus Larsen <[email protected]>
  • Loading branch information
magnuslarsen and Magnus Larsen authored Oct 9, 2023
1 parent 38da505 commit 280360e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ You can view this list in vim with `:help conform-formatters`
- [erb_format](https://github.com/nebulab/erb-formatter) - Format ERB files with speed and precision.
- [eslint_d](https://github.com/mantoni/eslint_d.js/) - Like ESLint, but faster.
- [fish_indent](https://fishshell.com/docs/current/cmds/fish_indent.html) - Indent or otherwise prettify a piece of fish code.
- [fixjson](https://github.com/rhysd/fixjson) - JSON Fixer for Humans using (relaxed) JSON5.
- [gci](https://github.com/daixiang0/gci) - GCI, a tool that controls Go package import order and makes it always deterministic.
- [gdformat](https://github.com/Scony/godot-gdscript-toolkit) - A formatter for Godot's gdscript.
- [gofmt](https://pkg.go.dev/cmd/gofmt) - Formats go programs.
Expand Down
1 change: 1 addition & 0 deletions doc/conform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ FORMATTERS *conform-formatter
`erb_format` - Format ERB files with speed and precision.
`eslint_d` - Like ESLint, but faster.
`fish_indent` - Indent or otherwise prettify a piece of fish code.
`fixjson` - JSON Fixer for Humans using (relaxed) JSON5.
`gci` - GCI, a tool that controls Go package import order and makes it always
deterministic.
`gdformat` - A formatter for Godot's gdscript.
Expand Down
8 changes: 8 additions & 0 deletions lua/conform/formatters/fixjson.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---@type conform.FileFormatterConfig
return {
meta = {
url = "https://github.com/rhysd/fixjson",
description = "JSON Fixer for Humans using (relaxed) JSON5 ",
},
command = "fixjson",
}

0 comments on commit 280360e

Please sign in to comment.