mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #825] [Feature] Global config #2389
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#2389
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 @TheElegantCoding on GitHub (May 20, 2023).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/825
it will be nice to have a global configuration and then a locla configuration for a project, this method is common in eslitn when you set a config file in your root or home direcory of the machine like
~/for linux andC:\Users\{ user }for windows, here we can have a file for.markdownlint.jsonand have a global config for all the repos, if for some reason i need to change in a repo the rules, i just create another config file in the root of the directory and this rules are overrired@DavidAnson commented on GitHub (May 20, 2023):
As a library, you can fetch configuration from wherever you want when calling the API. If you are using one of the CLIs,
.markdownlint.jsonsupports "~" inextendspaths which can be used to reference the user's home directory in the usual manner. This should allow the behavior you describe.@TheElegantCoding commented on GitHub (May 26, 2023):
Thanks, yes this works, still I have to create a file in every project but for now works, it will be nice to avoid that and also there can be problems in a team when a new member download the repo he will no have the file in his home directory, is there a way to create a repo with a custom config and extended ?
@DavidAnson commented on GitHub (May 26, 2023):
You may be able to use a template in GitHub or scaffold with something like Yeoman. Anything like that would be out of scope for this project, though.