summaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/markdownlint-cli2.lua
blob: 69e4562b2eb9840043d9593634e24c95f43781a7 (plain)
1
2
3
4
5
6
7
8
9
10
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,
}