mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #332] Allow configuration to be read from package.json #2135
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#2135
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 @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.
@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.
@DavidAnson commented on GitHub (Oct 21, 2020):
This approach isn't really consistent with the goals of
markdownlint-cli2, but it might be good formarkdownlint-clihere: https://github.com/igorshubovych/markdownlint-cli