commitizen / commitizen/cz-cli

Use cosmiconfig so users can use whatever config file extension they want

未关闭
#773 3 条评论 12 个 reaction 已指派 1 人 已被 @dmwelch 认领 在 GitHub 查看
enhancement help / pr wanted
主要语言
JavaScript
星标
17.5k
派生
566
平均合并
8 小时 16 分钟
30 天内合并 PR
1

描述

With `cosmiconfig` we could automatically load the configuration file from whatever supported file, such as:

> - a package.json property
> - a JSON or YAML, extensionless "rc file"
> - an "rc file" with the extensions .json, .yaml, .yml, .js, or .cjs
> - a .config.js or .config.cjs CommonJS module

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: https://github.com/commitizen/cz-cli/issues/460

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。