[GH-ISSUE #461] Consider using cosmiconfig to manage configs #379

Closed
opened 2026-03-03 01:26:24 +03:00 by kerem · 6 comments
Owner

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.json and markdownlintrc.yaml

Why not just use cosmiconfig, the solution many projects uses?

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.json` and `markdownlintrc.yaml` Why not just use cosmiconfig, the solution many projects uses?
kerem 2026-03-03 01:26:24 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@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 rc package: https://github.com/igorshubovych/markdownlint-cli#configuration

<!-- gh-comment-id:967251478 --> @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 `rc` package: https://github.com/igorshubovych/markdownlint-cli#configuration
Author
Owner

@xboy2012 commented on GitHub (Nov 25, 2021):

Well, my consideration is to support markdownlintrc.js,in order to integrate with our team code standard tools
Then we could implement dynamic configs.

<!-- gh-comment-id:978839952 --> @xboy2012 commented on GitHub (Nov 25, 2021): Well, my consideration is to support `markdownlintrc.js`,in order to integrate with our team code standard tools Then we could implement dynamic configs.
Author
Owner

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

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

@DavidAnson commented on GitHub (Nov 25, 2021):

A Google search for .markdownlintrc.js suggests you may be using this package: https://www.npmjs.com/package/markdownlint-config-fluid

Their README explains how to integrate with both CLI's.

<!-- gh-comment-id:978884976 --> @DavidAnson commented on GitHub (Nov 25, 2021): A Google search for `.markdownlintrc.js` suggests you may be using this package: https://www.npmjs.com/package/markdownlint-config-fluid Their README explains how to integrate with both CLI's.
Author
Owner

@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-cli2 is just what I need. Thanks a lot.

<!-- gh-comment-id:978923329 --> @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-cli2` is just what I need. Thanks a lot.
Author
Owner

@DavidAnson commented on GitHub (Nov 25, 2021):

Great!

<!-- gh-comment-id:979368842 --> @DavidAnson commented on GitHub (Nov 25, 2021): Great!
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#379
No description provided.