-
Notifications
You must be signed in to change notification settings - Fork 554
support config file #460
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I must first say that it's very courteous indeed that commitizen at least looks for its configs under a top-level |
Please, implement cosmiconfig. It is very useful to be able to highlight syntax in text editors according to file extensions. |
Another use case for this is when you want to gather all your configuration into one package ala |
I would love this too! Any help wanted? |
is there something special desired about cosmiconfig that isn't handled currently? i've been using cz-cli/src/commitizen/configLoader.js Line 6 in a6adb3b
|
From what I remembered since my last post, what I wanted to do is "import" my configuration from a package instead of having it in the root folder i.e for // .prettierrc.js
const config = require('my-prettier-config');
module.exports = config; From what I understand such behavior was not possible at least in 2019 when I commented. |
I found out that the configuration is read in the presets/styles instead of cz-cli. Example: |
I'm not sure what you mean by that. |
I mean that But IMHO this issue's main purpose is the lack of documentation concerning configuration files. A simple phrase in README like: "this project uses cosmiconfig" would be enough. |
Yes, agree with @fsmaia that the heart of this issue is the lack of documentation around the package's support of config files, though it's hard to know without confirmation from its creator, @zyy7259. That said, assuming this is correct, the PR above (assuming it's approved and merged) does seem allow this issue to be closed… |
🎉 This issue has been resolved in version 4.1.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
For anyone following this thread I just created a PR to support cosmiconfig attached to #773 |
support
.czrc
orcz.config.js
config file through https://github.com/davidtheclark/cosmiconfigThe text was updated successfully, but these errors were encountered: