Skip to content

Commit

Permalink
feat: register eslint_d formatter (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
fluctlight-kayaba authored Oct 4, 2023
1 parent 4083df7 commit 057f1a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- [x] [clang-format](https://www.kernel.org/doc/html/latest/process/clang-format.html)
- [ ] [djhtml](https://github.com/rtts/djhtml)
- [ ] [dprint](https://dprint.dev/)
- [x] [eslint_d](https://github.com/mantoni/eslint_d.js)
- [ ] [fish_indent](https://fishshell.com/docs/current/cmds/fish_indent.html)
- [ ] [fnlfmt](https://git.sr.ht/~technomancy/fnlfmt)
- [ ] [gofmt](https://pkg.go.dev/cmd/gofmt)
Expand Down
7 changes: 7 additions & 0 deletions lua/guard-collection/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ M.dprint = {
find = { 'dprint.json', 'dprint.jsonc', '.dprint.json', '.dprint.jsonc' },
}

M.eslint_d = {
cmd = 'eslint_d',
args = { '--fix-to-stdout', '--stdin', '--stdin-filename' },
fname = true,
stdin = true,
}

M.fish_indent = {
cmd = 'fish_indent',
stdin = true,
Expand Down

0 comments on commit 057f1a3

Please sign in to comment.