summaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/markdownlint.lua
blob: 40de29b5578c0c9dc9f3f8508c3932a7fa1346f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
---@type conform.FileFormatterConfig
return {
  meta = {
    url = "https://github.com/DavidAnson/markdownlint",
    description = "A Node.js style checker and lint tool for Markdown/CommonMark files.",
  },
  command = "markdownlint",
  args = { "--fix", "$FILENAME" },
  exit_codes = { 0, 1 }, -- code 1 is given when trying a file that includes non-autofixable errors
  stdin = false,
}