Skip to content

Commit

Permalink
fix: stylelint and markdownlint when there are non-autofixable er…
Browse files Browse the repository at this point in the history
…rors (nvim-lua#70)

* fix: `stylelint` when there are non-autofixable errors

* fix: exit code for non-autofixable error in `markdownlint`
  • Loading branch information
chrisgrieser authored and F1lipB committed Dec 17, 2024
1 parent a973751 commit f6fbb28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/conform/formatters/markdownlint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
1 change: 1 addition & 0 deletions lua/conform/formatters/stylelint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

0 comments on commit f6fbb28

Please sign in to comment.