[GH-ISSUE #332] Allow configuration to be read from package.json #2135

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

Originally created by @ylavoie on GitHub (Sep 28, 2020).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/332

Many Linters allow their configuration to be read from a key in package.json. JS & CSS linters, for example. Allowing Markdownlint to read its config from a 'markdownlint' key would consistent with others.
This simplifies maintenance by regrouping all relevant configs in a single file.

Originally created by @ylavoie on GitHub (Sep 28, 2020). Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/332 Many Linters allow their configuration to be read from a key in package.json. JS & CSS linters, for example. Allowing Markdownlint to read its config from a 'markdownlint' key would consistent with others. This simplifies maintenance by regrouping all relevant configs in a single file.
kerem 2026-03-07 20:04:55 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@DavidAnson commented on GitHub (Sep 29, 2020):

Do you mean to open this issue for one of the CLI packages? The library (this package) doesn’t read configuration from anywhere - it requires the caller to pass it in from wherever the caller wants to get it.

<!-- gh-comment-id:700412626 --> @DavidAnson commented on GitHub (Sep 29, 2020): Do you mean to open this issue for one of the CLI packages? The library (this package) doesn’t read configuration from anywhere - it requires the caller to pass it in from wherever the caller wants to get it.
Author
Owner

@DavidAnson commented on GitHub (Oct 21, 2020):

This approach isn't really consistent with the goals of markdownlint-cli2, but it might be good for markdownlint-cli here: https://github.com/igorshubovych/markdownlint-cli

<!-- gh-comment-id:713274617 --> @DavidAnson commented on GitHub (Oct 21, 2020): This approach isn't really consistent with the goals of `markdownlint-cli2`, but it might be good for `markdownlint-cli` here: https://github.com/igorshubovych/markdownlint-cli
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#2135
No description provided.