diff options
author | George GuimarĂ£es <george.guimaraes@gmail.com> | 2023-10-31 11:29:31 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 07:29:31 -0700 |
commit | 9bb3a940389dda796192a477a016069472692526 (patch) | |
tree | 4d46653852cb2ca251c3a8b4b8d7311a119da521 /lua/conform/formatters | |
parent | f7766d2fbe23f0f22a3db1513beba7d03a8dc261 (diff) |
feat: add markdownlint-cli2 (#171)
cli2 is a better cli for markdownlint. It allows to have config files in different directories, and it's also from the same author as the original node.js markdownlint lib.
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r-- | lua/conform/formatters/markdownlint-cli2.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/conform/formatters/markdownlint-cli2.lua b/lua/conform/formatters/markdownlint-cli2.lua new file mode 100644 index 0000000..69e4562 --- /dev/null +++ b/lua/conform/formatters/markdownlint-cli2.lua @@ -0,0 +1,11 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/DavidAnson/markdownlint-cli2", + description = "A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library", + }, + command = "markdownlint-cli2", + args = { "--fix", "$FILENAME" }, + exit_codes = { 0, 1 }, -- code 1 is returned when linting/formatter was successful and there were errors + stdin = false, +} |