mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-25 09:16:02 +03:00
[GH-ISSUE #592] Add an option to disable all Prettier-related rules at once #2315
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#2315
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 @JoshuaKGoldberg on GitHub (Oct 2, 2022).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/592
I often use Markdownlint and Prettier together in the same repo, both with editor extensions. When using Prettier, there's no need for Markdownlint to check formatting rules. I find myself disabling at least
no-hard-tabsandline-length, and sometimes more if the Prettier config is customized (docs ref: https://github.com/DavidAnson/markdownlint/blob/main/doc/Prettier.md).Can we have a one-line option in for Markdownlint configs that disables all formatting rules that would conflict with Prettier? For reference, the equivalent in ESLint-land is
eslint-config-prettier.github.com/JoshuaKGoldberg/template-typescript-node-package@19d02d0631.github.com/JoshuaKGoldberg/template-typescript-node-package@19d02d0631/.markdownlint.jsonIf the answer to the issue is to disable all rules with certain tags, then this might be a docs request, not a feature request. 😄
@DavidAnson commented on GitHub (Oct 2, 2022):
It sounds like you want to create a style for use with Prettier?
https://github.com/DavidAnson/markdownlint/tree/main/style
@JoshuaKGoldberg commented on GitHub (Oct 2, 2022):
Sure, that would work! I'm having a hard time finding docs on inheriting those built-in styles though. Is there more than what's under https://github.com/DavidAnson/markdownlint#optionsconfig?
@DavidAnson commented on GitHub (Oct 2, 2022):
You could have your configuration file "extends" a predefined style?
@JoshuaKGoldberg commented on GitHub (Oct 2, 2022):
Yes, that'd be great. But I don't see any docs on this repo that explain how to do that. I'll file a separate issue for docs and send in a Prettier PR for this one 😄 thanks!