summaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters/stylelint.lua
blob: e102d84c01a9aa81ae0736c29b4328e1f9d6472d (plain)
1
2
3
4
5
6
7
8
9
10
11
---@type conform.FileFormatterConfig
return {
  meta = {
    url = "https://github.com/stylelint/stylelint",
    description = "A mighty CSS linter that helps you avoid errors and enforce conventions.",
  },
  command = "stylelint",
  args = { "--stdin", "--fix" },
  exit_codes = { 0, 2 }, -- code 2 is given when trying file includees some non-autofixable errors
  stdin = true,
}