aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/conform/formatters/markdownlint.lua1
-rw-r--r--lua/conform/formatters/stylelint.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/lua/conform/formatters/markdownlint.lua b/lua/conform/formatters/markdownlint.lua
index 654a603..40de29b 100644
--- a/lua/conform/formatters/markdownlint.lua
+++ b/lua/conform/formatters/markdownlint.lua
@@ -6,5 +6,6 @@ return {
},
command = "markdownlint",
args = { "--fix", "$FILENAME" },
+ exit_codes = { 0, 1 }, -- code 1 is given when trying a file that includes non-autofixable errors
stdin = false,
}
diff --git a/lua/conform/formatters/stylelint.lua b/lua/conform/formatters/stylelint.lua
index 3d8361d..e102d84 100644
--- a/lua/conform/formatters/stylelint.lua
+++ b/lua/conform/formatters/stylelint.lua
@@ -6,5 +6,6 @@ return {
},
command = "stylelint",
args = { "--stdin", "--fix" },
+ exit_codes = { 0, 2 }, -- code 2 is given when trying file includees some non-autofixable errors
stdin = true,
}