-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cosmiconfig so users can use whatever config file extension they want #773
Labels
Comments
My use case: I want to use |
Just found out about lilconfig which has the parts of cosmiconfig that matter and zero dependencies. |
I'm looking at this today. |
pmcelhaney
added a commit
to pmcelhaney/cz-cli
that referenced
this issue
Jan 5, 2022
it should now be able to find the config file from a subdirectory fixes commitizen#773
pmcelhaney
added a commit
to pmcelhaney/cz-cli
that referenced
this issue
Jan 5, 2022
it should now be able to find the config file from a subdirectory fixes commitizen#773
pmcelhaney
added a commit
to pmcelhaney/cz-cli
that referenced
this issue
Jan 5, 2022
it should now be able to find the config file from a subdirectory fixes commitizen#773
pmcelhaney
added a commit
to pmcelhaney/cz-cli
that referenced
this issue
Jan 5, 2022
it should now be able to find the config file from a subdirectory fixes commitizen#773
Closed
levi2ki
pushed a commit
to levi2ki/cz-cli
that referenced
this issue
Oct 31, 2023
Added fully compatible cosmiconfig support with BOM and encoding checks. Added json5 config format parser. Added tests. Some minor code style changes; Closes: commitizen#773
levi2ki
pushed a commit
to levi2ki/cz-cli
that referenced
this issue
Nov 5, 2023
Added cosmiconfig support; Added json5 support for configs; Removed deprecated czConfig attribute support; Added load and loadAtRoot public api hepers; Removed findup and config normalization functions that are not required for now; BREAKING CHANGE: config.path now resolves relative to config location; config lookup now relays on cosmiconfig search rules; Closes: commitizen#773
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
cosmiconfig
we could automatically load the configuration file from whatever supported file, such as:I'm personally looking for a
.czrc.json
, so my VSCode can automatically detect it as JSON.Nonetheless, this would reduce a lot of code from this repo.
https://github.com/davidtheclark/cosmiconfig
Related: #460
The text was updated successfully, but these errors were encountered: