Consider adding a command-line parameter to specify the root config file pathSee original GitHub issue
Can you make it so that this can be given a location where the config is.
The example use case is for ci. given directory structure
When I create a stage I can specify a image with this cli installed so the config for this would be in the .gitlab folder currently I could do:
script: - cd .gitlab/configfolder - markdownlint-cli2 ../../**
but I would prefer
script: - markdownlint-cli2 -c .gitlab/configfolder/conf.yml **
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
Another thing to consider, instead of naming the rules like MD123, you can use the text name like “line-length” which is a little more descriptive and might avoid the need to describe each rule in the list with a comment.
Glad to hear it, welcome to the future! 😃
FYI, now that it is JSONC, this simulated comment can become a real one: https://github.com/dgroomes/my-config/blob/9e9ed0d6b37a772b59453216f73f810f4bfcb333/markdownlint/.markdownlint-cli2.jsonc#L18