mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #1179] MD004 overwritten by prettier #2479
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#2479
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CWSites on GitHub (Apr 18, 2024).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1179
I have both markdownlint and prettier configured for my project. I observed that prettier is overwriting my unordered list options (it auto changes
+and*to-) and was wondering if there is a way to prevent this from happening?The only thing I can think of right now is to have prettier ignore
.mdfiles, but this isn't ideal.When researching prettier's approach I came across this issue which I believe is the root cause. https://github.com/prettier/prettier/issues/4251
@DavidAnson commented on GitHub (Apr 18, 2024):
I'm not a prettier user and don't have recommendations for how to configure it, sorry.
@CWSites commented on GitHub (Apr 26, 2024):
Thanks for your quick reply. I'm wondering if anyone else that uses this has any suggestions of how they get past this?
@aphedges commented on GitHub (May 3, 2024):
Prettier intentionally limits how much it can be configured, which includes providing no option to change the style of Markdown unordered lists. If you want a formatter that is less opinionated, then Prettier is probably not the tool for you.
@CWSites commented on GitHub (May 10, 2024):
Looks like I'll just stick with adding
.mdto my.prettierignore.