mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #461] Consider using cosmiconfig to manage configs #2229
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#2229
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 @xboy2012 on GitHub (Nov 12, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/461
The current implementation just support
markdownlintrc.jsonandmarkdownlintrc.yamlWhy not just use cosmiconfig, the solution many projects uses?
@DavidAnson commented on GitHub (Nov 12, 2021):
This library does not directly deal with configuration files by name and supports any kind of parser the user wants: https://github.com/DavidAnson/markdownlint#parsers
I think you are asking about markdownlint-cli: https://github.com/igorshubovych/markdownlint-cli
It uses the
rcpackage: https://github.com/igorshubovych/markdownlint-cli#configuration@xboy2012 commented on GitHub (Nov 25, 2021):
Well, my consideration is to support
markdownlintrc.js,in order to integrate with our team code standard toolsThen we could implement dynamic configs.
@DavidAnson commented on GitHub (Nov 25, 2021):
If you are making a request for the markdownlint-cli package, please open an issue in that project. I provide a link to it and explain what it currently uses in my comment above.
If you are making a request for this library, I do not understand what you want. Please see my comment above and explain what API or code in this project that you are suggesting a a change to.
Thanks.
@DavidAnson commented on GitHub (Nov 25, 2021):
A Google search for
.markdownlintrc.jssuggests you may be using this package: https://www.npmjs.com/package/markdownlint-config-fluidTheir README explains how to integrate with both CLI's.
@xboy2012 commented on GitHub (Nov 25, 2021):
well, I see
https://github.com/DavidAnson/markdownlint-cli2/blob/main/test/markdownlint-cli2-js/.markdownlint-cli2.js
Then
markdownlint-cli2is just what I need. Thanks a lot.@DavidAnson commented on GitHub (Nov 25, 2021):
Great!