[GH-ISSUE #1555] FR: markdownlint config from external git repository #2554

Closed
opened 2026-03-07 20:08:51 +03:00 by kerem · 2 comments
Owner

Originally created by @volker-raschek on GitHub (Mar 31, 2025).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1555

Hello everyone,
I have several git repositories. There is a markdownlint.yaml file in each of them. My problem with the configuration file is that most of them are identical and only receive partial maintenance. In other words, only when someone is actively working on the repository.

If the configuration file changes with regard to a newer markdownlint version, updated as dependency via dependabot or renovate, you would actually have to go through all projects and adapt them.

The opensource project renovate has a similar problem. They have solved the problem with configuration presets. I am therefore submitting a feature request here to integrate a similar workflow / configuration option to drastically reduce the maintenance of configuration files.

For example:

MD0XX: 
  extends:
  - https://github.com/org/owner#master

Volker

Originally created by @volker-raschek on GitHub (Mar 31, 2025). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/1555 Hello everyone, I have several git repositories. There is a `markdownlint.yaml` file in each of them. My problem with the configuration file is that most of them are identical and only receive partial maintenance. In other words, only when someone is actively working on the repository. If the configuration file changes with regard to a newer markdownlint version, updated as dependency via dependabot or renovate, you would actually have to go through all projects and adapt them. The opensource project renovate has a similar problem. They have solved the problem with [configuration presets]( https://docs.renovatebot.com/config-presets/). I am therefore submitting a feature request here to integrate a similar workflow / configuration option to drastically reduce the maintenance of configuration files. For example: ```yaml MD0XX: extends: - https://github.com/org/owner#master ``` Volker
kerem 2026-03-07 20:08:51 +03:00
Author
Owner

@DavidAnson commented on GitHub (Mar 31, 2025):

The extends property is already supported in .markdownlint.yaml and can be used as you propose: https://github.com/DavidAnson/markdownlint?tab=readme-ov-file#optionsconfig

<!-- gh-comment-id:2766656058 --> @DavidAnson commented on GitHub (Mar 31, 2025): The `extends` property is already supported in `.markdownlint.yaml` and can be used as you propose: https://github.com/DavidAnson/markdownlint?tab=readme-ov-file#optionsconfig
Author
Owner

@DavidAnson commented on GitHub (Apr 3, 2025):

Note that because extends can reference an installed npm package and npm can install devDependencies directly from git, the complete scenario described above is possible today.

<!-- gh-comment-id:2774471024 --> @DavidAnson commented on GitHub (Apr 3, 2025): Note that because `extends` can reference an installed npm package and npm can install `devDependencies` directly from git, the complete scenario described above is possible today.
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#2554
No description provided.