[GH-ISSUE #592] Add an option to disable all Prettier-related rules at once #2315

Closed
opened 2026-03-07 20:06:37 +03:00 by kerem · 4 comments
Owner

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-tabs and line-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.

If the answer to the issue is to disable all rules with certain tags, then this might be a docs request, not a feature request. 😄

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-tabs` and `line-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`](https://github.com/prettier/eslint-config-prettier). * Example repo: https://github.com/JoshuaKGoldberg/template-typescript-node-package/tree/19d02d06310097e867344714b36300776f12721a. * Markdownlint configuration: https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/19d02d06310097e867344714b36300776f12721a/.markdownlint.json If the answer to the issue is to disable all rules with certain tags, then this might be a docs request, not a feature request. 😄
kerem 2026-03-07 20:06:37 +03:00
Author
Owner

@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

<!-- gh-comment-id:1264548540 --> @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
Author
Owner

@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?

<!-- gh-comment-id:1264548786 --> @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?
Author
Owner

@DavidAnson commented on GitHub (Oct 2, 2022):

You could have your configuration file "extends" a predefined style?

<!-- gh-comment-id:1264549653 --> @DavidAnson commented on GitHub (Oct 2, 2022): You could have your configuration file "extends" a predefined style?
Author
Owner

@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!

<!-- gh-comment-id:1264550829 --> @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!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#2315
No description provided.